pub trait IntoMaybeTlsStream<S>: Sealed<S>where
S: AsFd,{
// Required method
fn into_maybe_tls_stream(self) -> Result<MaybeTlsStream<PollFd<S>>, Error>;
}Available on crate feature
ws only.Expand description
Convert a stream into a MaybeTlsStream.
Required Methods§
Sourcefn into_maybe_tls_stream(self) -> Result<MaybeTlsStream<PollFd<S>>, Error>
fn into_maybe_tls_stream(self) -> Result<MaybeTlsStream<PollFd<S>>, Error>
Convert this stream into a MaybeTlsStream.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".