pub struct AeadXNonce(pub ByteArray24);
Expand description
Cryptographic and Timestamp data types
A representation of a 24 byte ChaCha AEAD Extended Nonce
default constant time equality checks, hex fmt::Debug
and hex fmt::Display
,
and an implementation for Borsh encoding that ensure
no two binary representations that deserialize into the same object
and a possibly smaller code size compared to serde binary representations.
Tuple Fields§
§0: ByteArray24
Trait Implementations§
Source§impl BorshDeserialize for AeadXNonce
impl BorshDeserialize for AeadXNonce
Source§impl BorshSerialize for AeadXNonce
impl BorshSerialize for AeadXNonce
Source§impl Clone for AeadXNonce
impl Clone for AeadXNonce
Source§fn clone(&self) -> AeadXNonce
fn clone(&self) -> AeadXNonce
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for AeadXNonce
impl Default for AeadXNonce
Source§fn default() -> AeadXNonce
fn default() -> AeadXNonce
Returns the “default value” for a type. Read more
Source§impl Hash for AeadXNonce
impl Hash for AeadXNonce
Source§impl Ord for AeadXNonce
impl Ord for AeadXNonce
Source§fn cmp(&self, other: &AeadXNonce) -> Ordering
fn cmp(&self, other: &AeadXNonce) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AeadXNonce
impl PartialEq for AeadXNonce
Source§impl PartialOrd for AeadXNonce
impl PartialOrd for AeadXNonce
impl Copy for AeadXNonce
impl Eq for AeadXNonce
Auto Trait Implementations§
impl Freeze for AeadXNonce
impl RefUnwindSafe for AeadXNonce
impl Send for AeadXNonce
impl Sync for AeadXNonce
impl Unpin for AeadXNonce
impl UnwindSafe for AeadXNonce
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