pub struct PeerSession {
pub session_nonce: String,
pub peer_identity_key: String,
pub peer_nonce: String,
pub is_authenticated: bool,
}Expand description
Tracks the state of an authenticated session with a peer.
Fields§
§session_nonce: StringThe nonce that identifies this session.
peer_identity_key: StringThe peer’s compressed hex identity key.
peer_nonce: StringThe peer’s nonce for this session.
is_authenticated: boolWhether the handshake has completed successfully.
Trait Implementations§
Source§impl Clone for PeerSession
impl Clone for PeerSession
Source§fn clone(&self) -> PeerSession
fn clone(&self) -> PeerSession
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 moreAuto Trait Implementations§
impl Freeze for PeerSession
impl RefUnwindSafe for PeerSession
impl Send for PeerSession
impl Sync for PeerSession
impl Unpin for PeerSession
impl UnsafeUnpin for PeerSession
impl UnwindSafe for PeerSession
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