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>
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§
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes