[][src]Struct tendermint::secret_connection::Nonce

pub struct Nonce(pub [u8; 12]);

SecretConnection nonces (i.e. ChaCha20 nonces)

Methods

impl Nonce[src]

pub fn increment(&mut self)[src]

Increment the nonce's counter by 1

pub fn to_bytes(&self) -> &[u8][src]

Serialize nonce as bytes (little endian)

Trait Implementations

impl<'_> From<&'_ Nonce> for Nonce[src]

impl Default for Nonce[src]

Auto Trait Implementations

impl Send for Nonce

impl Sync for Nonce

impl Unpin for Nonce

impl UnwindSafe for Nonce

impl RefUnwindSafe for Nonce

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Typeable for T where
    T: Any