Struct poem::listener::RustlsAcceptor
source · [−]pub struct RustlsAcceptor<T, S> { /* private fields */ }
Available on crate features
server
and rustls
only.Expand description
A TLS or SSL protocol acceptor with rustls
.
Trait Implementations
sourceimpl<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,
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
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