Struct native_tls::MidHandshakeTlsStream
source · [−]pub struct MidHandshakeTlsStream<S>(_);
Expand description
A TLS stream which has been interrupted midway through the handshake process.
Implementations
sourceimpl<S> MidHandshakeTlsStream<S>
impl<S> MidHandshakeTlsStream<S>
sourceimpl<S> MidHandshakeTlsStream<S> where
S: Read + Write,
impl<S> MidHandshakeTlsStream<S> where
S: Read + Write,
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> !RefUnwindSafe for MidHandshakeTlsStream<S>
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>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more