Enum tcp_stream::MidHandshakeTlsStream
source · [−]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
sourceimpl MidHandshakeTlsStream
impl MidHandshakeTlsStream
sourcepub fn get_ref(&self) -> &TcpStreamⓘNotable traits for TcpStreamimpl Read for TcpStreamimpl Write for TcpStream
pub fn get_ref(&self) -> &TcpStreamⓘNotable traits for TcpStreamimpl Read for TcpStreamimpl Write for TcpStream
Get a reference to the inner stream
sourcepub fn get_mut(&mut self) -> &mut TcpStreamⓘNotable traits for TcpStreamimpl Read for TcpStreamimpl Write for TcpStream
pub fn get_mut(&mut self) -> &mut TcpStreamⓘNotable traits for TcpStreamimpl Read for TcpStreamimpl Write for TcpStream
Get a mutable reference to the inner stream
sourcepub fn handshake(self) -> HandshakeResult
pub fn handshake(self) -> HandshakeResult
Retry the handshake
Trait Implementations
sourceimpl Debug for MidHandshakeTlsStream
impl Debug for MidHandshakeTlsStream
sourceimpl Display for MidHandshakeTlsStream
impl Display for MidHandshakeTlsStream
sourceimpl From<MidHandshakeSslStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeSslStream<TcpStream>> for MidHandshakeTlsStream
sourcefn from(mid: OpenSslMidHandshakeTlsStream) -> Self
fn from(mid: OpenSslMidHandshakeTlsStream) -> Self
Performs the conversion.
sourceimpl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
sourcefn from(mid: NativeTlsMidHandshakeTlsStream) -> Self
fn from(mid: NativeTlsMidHandshakeTlsStream) -> Self
Performs the conversion.
sourceimpl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
impl From<MidHandshakeTlsStream<TcpStream>> for MidHandshakeTlsStream
sourcefn from(mid: RustlsMidHandshakeTlsStream) -> Self
fn from(mid: RustlsMidHandshakeTlsStream) -> Self
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more