pub enum HandshakeState {
Start,
WaitServerHello,
WaitEncryptedExtensions,
WaitCertificate,
WaitCertificateVerify,
WaitFinished,
Connected,
Error,
}Expand description
TLS 1.3 handshake state machine states
Variants§
Start
Initial state – ready to send ClientHello
WaitServerHello
ClientHello sent, waiting for ServerHello
WaitEncryptedExtensions
ServerHello received, waiting for EncryptedExtensions
WaitCertificate
EncryptedExtensions received, waiting for Certificate
WaitCertificateVerify
Certificate received, waiting for CertificateVerify
WaitFinished
CertificateVerify received, waiting for Finished
Connected
Handshake complete, application data can flow
Error
Unrecoverable error occurred
Trait Implementations§
Source§impl Clone for HandshakeState
impl Clone for HandshakeState
Source§fn clone(&self) -> HandshakeState
fn clone(&self) -> HandshakeState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandshakeState
impl Debug for HandshakeState
Source§impl PartialEq for HandshakeState
impl PartialEq for HandshakeState
impl Copy for HandshakeState
impl Eq for HandshakeState
impl StructuralPartialEq for HandshakeState
Auto Trait Implementations§
impl Freeze for HandshakeState
impl RefUnwindSafe for HandshakeState
impl Send for HandshakeState
impl Sync for HandshakeState
impl Unpin for HandshakeState
impl UnwindSafe for HandshakeState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)