pub enum SessionState {
Initial,
ClientHelloReceived,
ServerHelloReceived,
Tls13HandshakeEncrypted,
KeysEstablished,
Closed,
}Expand description
State of a TLS session.
Variants§
Initial
Initial state, waiting for ClientHello
ClientHelloReceived
Received ClientHello, waiting for ServerHello
ServerHelloReceived
Received ServerHello, keys can be derived
Tls13HandshakeEncrypted
TLS 1.3: Handshake keys established, waiting for Finished messages
KeysEstablished
Keys derived, ready for application data decryption
Closed
Session closed or errored
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
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 moreSource§impl Debug for SessionState
impl Debug for SessionState
Source§impl PartialEq for SessionState
impl PartialEq for SessionState
impl Copy for SessionState
impl Eq for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnwindSafe for SessionState
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