#[non_exhaustive]pub enum ClientHandshake {
NeedsInput(NeedsInput<ClientSide>),
VerifyServerIdentity(VerifyPeerIdentity<ClientSide>),
Complete(SplitConnection<ClientSide>),
}Expand description
An in-progress TLS client handshake.
Make one of these using ClientConnectionBuilder::start_handshake().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NeedsInput(NeedsInput<ClientSide>)
More data needs to be received to make progress.
VerifyServerIdentity(VerifyPeerIdentity<ClientSide>)
The server’s presented identity must be verified.
See VerifyPeerIdentity for how to proceed.
Complete(SplitConnection<ClientSide>)
The handshake is complete.
Now see SplitConnection to continue the connection.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClientHandshake
impl !UnwindSafe for ClientHandshake
impl Freeze for ClientHandshake
impl Send for ClientHandshake
impl Sync for ClientHandshake
impl Unpin for ClientHandshake
impl UnsafeUnpin for ClientHandshake
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