Struct poem::listener::NativeTlsAcceptor [−][src]
pub struct NativeTlsAcceptor<T, S> { /* fields omitted */ }
This is supported on crate feature
native-tls
only.Expand description
A TLS or SSL protocol acceptor with native_tls
.
Trait Implementations
impl<T, S> Acceptor for NativeTlsAcceptor<T, S> where
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
T: Acceptor,
impl<T, S> Acceptor for NativeTlsAcceptor<T, S> where
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
T: Acceptor,
type Io = HandshakeStream<TlsStream<T::Io>>
type Io = HandshakeStream<TlsStream<T::Io>>
IO stream type.
Returns the local address that this listener is bound to.
Auto Trait Implementations
impl<T, S> RefUnwindSafe for NativeTlsAcceptor<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for NativeTlsAcceptor<T, S> where
S: Send,
T: Send,
impl<T, S> Sync for NativeTlsAcceptor<T, S> where
S: Sync,
T: Sync,
impl<T, S> Unpin for NativeTlsAcceptor<T, S> where
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for NativeTlsAcceptor<T, S> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Wrap the acceptor in a Box.
fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
This is supported on crate feature
rustls
only.Consume this acceptor and return a new TLS acceptor with rustls
.
fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
This is supported on crate feature
native-tls
only.Consume this acceptor and return a new TLS acceptor with native-tls
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more