Struct ppppp_crypto::Nonce
source · pub struct Nonce(/* private fields */);
Expand description
A 32 byte nonce
Trait Implementations§
source§impl<'de> Deserialize<'de> for Nonce
impl<'de> Deserialize<'de> for Nonce
source§fn deserialize<D>(deserializer: D) -> Result<Nonce, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Nonce, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromBytes<32> for Nonce
impl FromBytes<32> for Nonce
type Error = Infallible
fn from_bytes(bytes: &[u8; 32]) -> Result<Self, Self::Error>
fn from_base58( base58_str: &str ) -> Result<Self, DeserializeBytesError<Self::Error>>
source§impl Ord for Nonce
impl Ord for Nonce
source§impl PartialEq<Nonce> for Nonce
impl PartialEq<Nonce> for Nonce
source§impl PartialOrd<Nonce> for Nonce
impl PartialOrd<Nonce> for Nonce
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Nonce
impl Eq for Nonce
impl StructuralEq for Nonce
impl StructuralPartialEq for Nonce
Auto Trait Implementations§
impl RefUnwindSafe for Nonce
impl Send for Nonce
impl Sync for Nonce
impl Unpin for Nonce
impl UnwindSafe for Nonce
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