pub struct ActiveSession {
pub keys: SessionKeys,
pub peer_public_key: PublicKey25519,
pub created_at: Instant,
pub last_used: Instant,
pub last_send: Instant,
pub endpoint: Option<SocketAddr>,
pub replay_window: ReplayWindow,
}Expand description
Active cryptographic session with established transport keys
Fields§
§keys: SessionKeysTransport keys for encrypting/decrypting data
peer_public_key: PublicKey25519Public key of the peer this session is with
created_at: InstantTimestamp when this session was created (handshake completed)
last_used: InstantTimestamp of last activity on this session
last_send: InstantTimestamp of last data sent on this session
endpoint: Option<SocketAddr>Current endpoint address for this peer (updated on packet receipt)
replay_window: ReplayWindowReplay protection window for received packets
Trait Implementations§
Source§impl Clone for ActiveSession
impl Clone for ActiveSession
Auto Trait Implementations§
impl Freeze for ActiveSession
impl RefUnwindSafe for ActiveSession
impl Send for ActiveSession
impl Sync for ActiveSession
impl Unpin for ActiveSession
impl UnsafeUnpin for ActiveSession
impl UnwindSafe for ActiveSession
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