Struct poem::listener::RustlsAcceptor [−][src]
pub struct RustlsAcceptor<T, S> { /* fields omitted */ }
This is supported on crate feature
rustls
only.Expand description
A TLS or SSL protocol acceptor with rustls
.
Trait Implementations
impl<T, S> Acceptor for RustlsAcceptor<T, S> where
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
T: Acceptor,
impl<T, S> Acceptor for RustlsAcceptor<T, S> where
S: Stream<Item = RustlsConfig> + 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 RustlsAcceptor<T, S>
impl<T, S> Send for RustlsAcceptor<T, S> where
S: Send,
T: Send,
impl<T, S> Sync for RustlsAcceptor<T, S> where
S: Sync,
T: Sync,
impl<T, S> Unpin for RustlsAcceptor<T, S> where
S: Unpin,
T: Unpin,
impl<T, S> !UnwindSafe for RustlsAcceptor<T, S>
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