pub struct EncryptedFrame {
pub nonce: [u8; 12],
pub ciphertext: Vec<u8>,
}Expand description
Encrypted frame produced by SessionCipher.
Fields§
§nonce: [u8; 12]12-byte nonce used for this frame.
ciphertext: Vec<u8>Ciphertext + AES-GCM authentication tag.
Trait Implementations§
Source§impl Clone for EncryptedFrame
impl Clone for EncryptedFrame
Source§fn clone(&self) -> EncryptedFrame
fn clone(&self) -> EncryptedFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncryptedFrame
impl RefUnwindSafe for EncryptedFrame
impl Send for EncryptedFrame
impl Sync for EncryptedFrame
impl Unpin for EncryptedFrame
impl UnsafeUnpin for EncryptedFrame
impl UnwindSafe for EncryptedFrame
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