Struct rustls_connector::MidHandshakeTlsStream
source · pub struct MidHandshakeTlsStream<S: Read + Write> { /* private fields */ }
Expand description
A TLS stream which has been interrupted during the handshake
Implementations§
source§impl<S: Debug + Read + Send + Sync + Write + 'static> MidHandshakeTlsStream<S>
impl<S: Debug + Read + Send + Sync + Write + 'static> MidHandshakeTlsStream<S>
sourcepub fn handshake(self) -> Result<TlsStream<S>, HandshakeError<S>>
pub fn handshake(self) -> Result<TlsStream<S>, HandshakeError<S>>
Retry the handshake
Errors
Returns a HandshakeError
containing either the current state of the handshake or the
failure when we couldn’t complete the hanshake
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§
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