Trait salvo_core::conn::IntoConfigStream

source ·
pub trait IntoConfigStream<C> {
    type Stream: Stream<Item = C> + Send + 'static;

    // Required method
    fn into_stream(self) -> Self::Stream;
}
Expand description

A type that can convert into tls config stream.

Required Associated Types§

source

type Stream: Stream<Item = C> + Send + 'static

TLS config stream.

Required Methods§

source

fn into_stream(self) -> Self::Stream

Consume itself and return tls config stream.

Implementors§

source§

impl IntoConfigStream<NativeTlsConfig> for NativeTlsConfig

Available on crate feature native-tls only.
source§

impl IntoConfigStream<OpensslConfig> for OpensslConfig

Available on crate feature openssl only.
source§

impl IntoConfigStream<RustlsConfig> for RustlsConfig

Available on crate feature rustls only.
source§

impl<T> IntoConfigStream<Identity> for T
where T: Stream<Item = Identity> + Send + 'static,

Available on crate feature native-tls only.
§

type Stream = T

source§

impl<T> IntoConfigStream<NativeTlsConfig> for T
where T: Stream<Item = NativeTlsConfig> + Send + 'static,

Available on crate feature native-tls only.
§

type Stream = T

source§

impl<T> IntoConfigStream<OpensslConfig> for T
where T: Stream<Item = OpensslConfig> + Send + 'static,

Available on crate feature openssl only.
§

type Stream = T

source§

impl<T> IntoConfigStream<SslAcceptorBuilder> for T
where T: Stream<Item = SslAcceptorBuilder> + Send + 'static,

Available on crate feature openssl only.
§

type Stream = T

source§

impl<T> IntoConfigStream<ServerConfig> for T
where T: Stream<Item = ServerConfig> + Send + 'static,

Available on crate feature quinn only.
§

type Stream = T

source§

impl<T> IntoConfigStream<RustlsConfig> for T
where T: Stream<Item = RustlsConfig> + Send + 'static,

Available on crate feature rustls only.
§

type Stream = T

source§

impl<T> IntoConfigStream<ServerConfig> for T
where T: Stream<Item = ServerConfig> + Send + 'static,

Available on crate feature rustls only.
§

type Stream = T