pub struct SessionFrame {
pub epoch: u32,
pub nonce: u64,
}Expand description
A session-epoch challenge and the answer echoing it: the epoch under challenge, and a nonce only a peer that received the challenge holds.
nonce MUST fit 62 bits, masked with NONCE_MASK. The varint codec
clamps wider values, and a clamped echo never compares equal to the
unclamped original.
Fields§
§epoch: u32§nonce: u64Trait Implementations§
Source§impl Clone for SessionFrame
impl Clone for SessionFrame
Source§fn clone(&self) -> SessionFrame
fn clone(&self) -> SessionFrame
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 SessionFrame
Source§impl Debug for SessionFrame
impl Debug for SessionFrame
Source§impl Default for SessionFrame
impl Default for SessionFrame
Source§fn default() -> SessionFrame
fn default() -> SessionFrame
Returns the “default value” for a type. Read more
impl Eq for SessionFrame
Source§impl PartialEq for SessionFrame
impl PartialEq for SessionFrame
impl StructuralPartialEq for SessionFrame
Auto Trait Implementations§
impl Freeze for SessionFrame
impl RefUnwindSafe for SessionFrame
impl Send for SessionFrame
impl Sync for SessionFrame
impl Unpin for SessionFrame
impl UnsafeUnpin for SessionFrame
impl UnwindSafe for SessionFrame
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