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§
Trait Implementations§
source§impl Debug for MidHandshakeTlsStream
impl Debug for MidHandshakeTlsStream
source§impl Display for MidHandshakeTlsStream
impl Display for MidHandshakeTlsStream
source§impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
source§fn from(mid: MidHandshakeTlsStream<TcpStream>) -> MidHandshakeTlsStream
fn from(mid: MidHandshakeTlsStream<TcpStream>) -> MidHandshakeTlsStream
Converts to this type from the input type.
source§impl From<TcpStream> for MidHandshakeTlsStream
impl From<TcpStream> for MidHandshakeTlsStream
source§fn from(mid: TcpStream) -> MidHandshakeTlsStream
fn from(mid: TcpStream) -> MidHandshakeTlsStream
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MidHandshakeTlsStream
impl !RefUnwindSafe for MidHandshakeTlsStream
impl Send for MidHandshakeTlsStream
impl Sync for MidHandshakeTlsStream
impl Unpin for MidHandshakeTlsStream
impl !UnwindSafe for MidHandshakeTlsStream
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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