pub struct MidHandshakeSslStream<S> { /* private fields */ }Available on crate feature
tls only.Expand description
An SSL stream midway through the handshake process.
Implementations§
Source§impl<S> MidHandshakeSslStream<S>
impl<S> MidHandshakeSslStream<S>
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Consumes self, returning its error.
Sourcepub fn into_source_stream(self) -> S
pub fn into_source_stream(self) -> S
Returns the source data stream.
Sourcepub fn into_parts(self) -> (Error, S)
pub fn into_parts(self) -> (Error, S)
Returns both the error and the source data stream, consuming self.
Sourcepub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
pub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
Restarts the handshake process.
This corresponds to SSL_do_handshake.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MidHandshakeSslStream<S>
impl<S> !RefUnwindSafe for MidHandshakeSslStream<S>
impl<S> Send for MidHandshakeSslStream<S>where
S: Send,
impl<S> Sync for MidHandshakeSslStream<S>where
S: Sync,
impl<S> Unpin for MidHandshakeSslStream<S>where
S: Unpin,
impl<S> !UnwindSafe for MidHandshakeSslStream<S>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more