pub enum MidHandshakeTlsStream {
Plain(TcpStream),
NativeTls(NativeTlsMidHandshakeTlsStream),
Openssl(OpenSslMidHandshakeTlsStream),
Rustls(RustlsMidHandshakeTlsStream),
}
Expand description
A TLS stream which has been interrupted during the handshake
Variants§
Plain(TcpStream)
Not a TLS stream
NativeTls(NativeTlsMidHandshakeTlsStream)
A native-tls MidHandshakeTlsStream
Openssl(OpenSslMidHandshakeTlsStream)
An openssl MidHandshakeTlsStream
Rustls(RustlsMidHandshakeTlsStream)
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<MidHandshakeSslStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeSslStream<TcpStream>> for MidHandshakeTlsStream
source§fn from(mid: OpenSslMidHandshakeTlsStream) -> Self
fn from(mid: OpenSslMidHandshakeTlsStream) -> Self
Converts to this type from the input type.
source§impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
source§fn from(mid: NativeTlsMidHandshakeTlsStream) -> Self
fn from(mid: NativeTlsMidHandshakeTlsStream) -> Self
Converts to this type from the input type.
source§impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
source§fn from(mid: RustlsMidHandshakeTlsStream) -> Self
fn from(mid: RustlsMidHandshakeTlsStream) -> Self
Converts to this type from the input type.
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§
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