Struct native_tls::MidHandshakeTlsStream
source · pub struct MidHandshakeTlsStream<S>(/* private fields */);
Expand description
A TLS stream which has been interrupted midway through the handshake process.
Implementations§
source§impl<S> MidHandshakeTlsStream<S>
impl<S> MidHandshakeTlsStream<S>
source§impl<S> MidHandshakeTlsStream<S>
impl<S> MidHandshakeTlsStream<S>
sourcepub fn handshake(self) -> Result<TlsStream<S>, HandshakeError<S>>
pub fn handshake(self) -> Result<TlsStream<S>, HandshakeError<S>>
Restarts the handshake process.
If the handshake completes successfully then the negotiated stream is
returned. If there is a problem, however, then an error is returned.
Note that the error may not be fatal. For example if the underlying
stream is an asynchronous one then HandshakeError::WouldBlock
may
just mean to wait for more I/O to happen later.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MidHandshakeTlsStream<S>
impl<S> RefUnwindSafe for MidHandshakeTlsStream<S>where
S: RefUnwindSafe,
impl<S> Send for MidHandshakeTlsStream<S>where
S: Send,
impl<S> Sync for MidHandshakeTlsStream<S>where
S: Sync,
impl<S> Unpin for MidHandshakeTlsStream<S>where
S: Unpin,
impl<S> UnwindSafe for MidHandshakeTlsStream<S>where
S: UnwindSafe,
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