pub enum State {
Reset,
WaitConInt,
WaitServerHello,
WaitEncryptedExtensions,
WaitFinished,
SendFinished,
Connected,
WaitAlertSendOk,
SendDiscon,
WaitDiscon,
}
Expand description
Internal TLS client states.
Variants§
Reset
Reset and idle.
WaitConInt
TCP handshake started, waiting for the CON int.
WaitServerHello
Sent ClientHello, waiting for ServerHello.
WaitEncryptedExtensions
Received ServerHello, waiting for EncryptedExtensions.
WaitFinished
Received EncryptedExtensions, waiting for ServerFinished.
SendFinished
Client will send ClientFinished on the next call to Client::process
.
Connected
Sent ClientFinished, TLS handshake has completed.
WaitAlertSendOk
The client sent an alert, waiting for the SENDOK interrupt before starting a TCP disconnection.
SendDiscon
Client will start a TCP disconnection on the next call to
Client::process
.
WaitDiscon
Client started a TCP disconnection, waiting for the DISCON interrupt.
Trait Implementations§
source§impl PartialEq for State
impl PartialEq for State
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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