Struct poem::listener::NativeTlsAcceptor
source · pub struct NativeTlsAcceptor<T, S> { /* private fields */ }
Available on crate features
server
and native-tls
only.Expand description
A TLS or SSL protocol acceptor with native_tls
.
Trait Implementations
sourceimpl<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 as Acceptor>::Io>>
type Io = HandshakeStream<TlsStream<<T as Acceptor>::Io>>
IO stream type.
sourcefn local_addr(&self) -> Vec<LocalAddr> ⓘ
fn local_addr(&self) -> Vec<LocalAddr> ⓘ
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
sourceimpl<T> AcceptorExt for Twhere
T: Acceptor,
impl<T> AcceptorExt for Twhere
T: Acceptor,
sourcefn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
fn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
Available on crate feature
server
only.Combine two acceptors.
sourcefn boxed(self) -> BoxAcceptorwhere
Self: Sized + 'static,
fn boxed(self) -> BoxAcceptorwhere
Self: Sized + 'static,
Available on crate feature
server
only.Wrap the acceptor in a
Box
.sourcefn 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,
Available on crate features
server
and rustls
only.Consume this acceptor and return a new TLS acceptor with
rustls
.sourcefn 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,
Available on crate features
server
and native-tls
only.Consume this acceptor and return a new TLS acceptor with
native-tls
.sourcefn openssl_tls<S>(self, config_stream: S) -> OpensslTlsAcceptor<Self, S>where
Self: Sized,
S: Stream<Item = OpensslTlsConfig> + Send + Unpin + 'static,
fn openssl_tls<S>(self, config_stream: S) -> OpensslTlsAcceptor<Self, S>where
Self: Sized,
S: Stream<Item = OpensslTlsConfig> + Send + Unpin + 'static,
Available on crate features
server
and openssl-tls
only.Consume this acceptor and return a new TLS acceptor with
openssl-tls
.sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more