Skip to main content

IntoMaybeTlsStream

Trait IntoMaybeTlsStream 

Source
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§

Source

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".

Implementors§