#[repr(C)]pub struct PamojaSealed {
pub counter: u64,
pub tag: [u8; 16],
}Expand description
The header that travels beside a sealed message.
The peer needs the counter to rebuild the nonce and to reject a replay, and the tag to tell whether the message arrived as it was sent.
Fields§
§counter: u64The counter naming this message within the session.
tag: [u8; 16]The tag over the ciphertext and its associated data.
Trait Implementations§
Source§impl Clone for PamojaSealed
impl Clone for PamojaSealed
Source§fn clone(&self) -> PamojaSealed
fn clone(&self) -> PamojaSealed
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 moreimpl Copy for PamojaSealed
Source§impl Debug for PamojaSealed
impl Debug for PamojaSealed
impl Eq for PamojaSealed
Source§impl PartialEq for PamojaSealed
impl PartialEq for PamojaSealed
Source§fn eq(&self, other: &PamojaSealed) -> bool
fn eq(&self, other: &PamojaSealed) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaSealed
Auto Trait Implementations§
impl Freeze for PamojaSealed
impl RefUnwindSafe for PamojaSealed
impl Send for PamojaSealed
impl Sync for PamojaSealed
impl Unpin for PamojaSealed
impl UnsafeUnpin for PamojaSealed
impl UnwindSafe for PamojaSealed
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