Struct poem::listener::BoxListener
source · [−]pub struct BoxListener(_);
Available on crate feature
server
only.Expand description
An owned dynamically typed Listener for use in cases where you can’t statically type your result or need to add some indirection.
Trait Implementations
sourceimpl Listener for BoxListener
impl Listener for BoxListener
sourcefn into_acceptor<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = IoResult<Self::Acceptor>> + Send + 'async_trait>>where
Self: 'async_trait,
fn into_acceptor<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = IoResult<Self::Acceptor>> + Send + 'async_trait>>where
Self: 'async_trait,
Create a acceptor instance.
sourcefn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
fn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
Combine two listeners. Read more
sourcefn rustls<S: IntoTlsConfigStream<RustlsConfig>>(
self,
config_stream: S
) -> RustlsListener<Self, S>where
Self: Sized,
fn rustls<S: IntoTlsConfigStream<RustlsConfig>>(
self,
config_stream: S
) -> RustlsListener<Self, S>where
Self: Sized,
Available on crate feature
rustls
only.Consume this listener and return a new TLS listener with
rustls
.sourcefn native_tls<S: IntoTlsConfigStream<NativeTlsConfig>>(
self,
config_stream: S
) -> NativeTlsListener<Self, S>where
Self: Sized,
fn native_tls<S: IntoTlsConfigStream<NativeTlsConfig>>(
self,
config_stream: S
) -> NativeTlsListener<Self, S>where
Self: Sized,
Available on crate feature
native-tls
only.Consume this listener and return a new TLS listener with
native-tls
.sourcefn openssl_tls<S: IntoTlsConfigStream<OpensslTlsConfig>>(
self,
config_stream: S
) -> OpensslTlsListener<Self, S>where
Self: Sized,
fn openssl_tls<S: IntoTlsConfigStream<OpensslTlsConfig>>(
self,
config_stream: S
) -> OpensslTlsListener<Self, S>where
Self: Sized,
Available on crate feature
openssl-tls
only.Consume this listener and return a new TLS listener with
openssl-tls
.sourcefn acme(self, auto_cert: AutoCert) -> AutoCertListener<Self>where
Self: Sized,
fn acme(self, auto_cert: AutoCert) -> AutoCertListener<Self>where
Self: Sized,
Available on crate feature
acme
only.Consume this listener and return a new ACME listener. Read more
sourcefn boxed(self) -> BoxListenerwhere
Self: Sized + 'static,
fn boxed(self) -> BoxListenerwhere
Self: Sized + 'static,
Wrap the listener in a
Box
.Auto Trait Implementations
impl !RefUnwindSafe for BoxListener
impl Send for BoxListener
impl !Sync for BoxListener
impl Unpin for BoxListener
impl !UnwindSafe for BoxListener
Blanket Implementations
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