Struct caesar_core::receiver::client::Context
source · struct Context {
hmac: Vec<u8>,
sender: Sender,
key: EphemeralSecret,
shared_key: Option<Aes128Gcm>,
files: Vec<File>,
sequence: u32,
index: usize,
progress: u64,
length: u64,
}Expand description
Represents the state of the receiver.
§Fields
hmac: The HMAC key used for authentication.sender: The sender used for sending packets.key: The ephemeral secret key used for key agreement.shared_key: The shared key used for encryption.files: The list of files being transferred.sequence: The sequence number of the last received packet.index: The index of the current file being transferred.progress: The number of bytes transferred so far.length: The total length of the file being transferred.
Fields§
§hmac: Vec<u8>The HMAC key used for authentication.
sender: SenderThe sender used for sending packets.
key: EphemeralSecretThe ephemeral secret key used for key agreement.
The shared key used for encryption.
files: Vec<File>The list of files being transferred.
sequence: u32The sequence number of the last received packet.
index: usizeThe index of the current file being transferred.
progress: u64The number of bytes transferred so far.
length: u64The total length of the file being transferred.
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more