pub enum MidHandshakeTlsStream {
Plain(TcpStream),
Rustls(MidHandshakeTlsStream<TcpStream>),
}
Expand description
Re-export TcpStream A TLS stream which has been interrupted during the handshake
Variants
Plain(TcpStream)
Not a TLS stream
Rustls(MidHandshakeTlsStream<TcpStream>)
A rustls-connector MidHandshakeTlsStream
Implementations
sourceimpl MidHandshakeTlsStream
impl MidHandshakeTlsStream
Re-export TcpStream
sourcepub fn get_ref(&self) -> &TcpStreamⓘNotable traits for TcpStreamimpl Write for TcpStreamimpl Read for TcpStream
pub fn get_ref(&self) -> &TcpStreamⓘNotable traits for TcpStreamimpl Write for TcpStreamimpl Read for TcpStream
Get a reference to the inner stream
sourcepub fn get_mut(&mut self) -> &mut TcpStreamⓘNotable traits for TcpStreamimpl Write for TcpStreamimpl Read for TcpStream
pub fn get_mut(&mut self) -> &mut TcpStreamⓘNotable traits for TcpStreamimpl Write for TcpStreamimpl Read for TcpStream
Get a mutable reference to the inner stream
sourcepub fn handshake(self) -> Result<TcpStream, HandshakeError>
pub fn handshake(self) -> Result<TcpStream, HandshakeError>
Retry the handshake
Trait Implementations
sourceimpl Debug for MidHandshakeTlsStream
impl Debug for MidHandshakeTlsStream
sourceimpl Display for MidHandshakeTlsStream
impl Display for MidHandshakeTlsStream
sourceimpl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
sourcefn from(mid: MidHandshakeTlsStream<TcpStream>) -> MidHandshakeTlsStream
fn from(mid: MidHandshakeTlsStream<TcpStream>) -> MidHandshakeTlsStream
Performs the conversion.
sourceimpl From<TcpStream> for MidHandshakeTlsStream
impl From<TcpStream> for MidHandshakeTlsStream
sourcefn from(mid: TcpStream) -> MidHandshakeTlsStream
fn from(mid: TcpStream) -> MidHandshakeTlsStream
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for MidHandshakeTlsStream
impl Send for MidHandshakeTlsStream
impl Sync for MidHandshakeTlsStream
impl Unpin for MidHandshakeTlsStream
impl !UnwindSafe for MidHandshakeTlsStream
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more