pub struct HandshakeSession {
pub session_id: Uuid,
pub peer_id: Option<Vec<u8>>,
pub state: HandshakeSessionState,
pub negotiated_version: Option<ProtocolVersion>,
pub peer_capabilities: Vec<String>,
pub our_keys: HandshakeKeys,
pub peer_keys: Option<PeerKeys>,
pub shared_secrets: Option<SharedSecrets>,
pub started_at: SystemTime,
pub last_activity: SystemTime,
pub nonce: u64,
}
Expand description
Handshake session state
Fields§
§session_id: Uuid
Session identifier
peer_id: Option<Vec<u8>>
Peer identifier (if known)
state: HandshakeSessionState
Handshake state
negotiated_version: Option<ProtocolVersion>
Protocol version negotiated
peer_capabilities: Vec<String>
Peer capabilities
our_keys: HandshakeKeys
Our ephemeral keys for this session
peer_keys: Option<PeerKeys>
Peer’s public keys
Shared secrets
started_at: SystemTime
Session start time
last_activity: SystemTime
Last activity
nonce: u64
Nonce for this session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandshakeSession
impl RefUnwindSafe for HandshakeSession
impl Send for HandshakeSession
impl Sync for HandshakeSession
impl Unpin for HandshakeSession
impl UnwindSafe for HandshakeSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more