Trait poem::listener::IntoAcceptor [−][src]
pub trait IntoAcceptor: Send {
type Acceptor: Acceptor;
fn into_acceptor<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = IoResult<Self::Acceptor>> + Send + 'async_trait>>
where
Self: 'async_trait;
fn combine<T>(self, other: T) -> CombinedListener<Self, T>
where
Self: Sized,
{ ... }
fn tls(self, config: TlsConfig) -> TlsListener<Self>
where
Self: Sized,
{ ... }
}
Expand description
Represents a type that can be converted to a acceptor.
Associated Types
Required methods
Provided methods
fn combine<T>(self, other: T) -> CombinedListener<Self, T> where
Self: Sized,
fn combine<T>(self, other: T) -> CombinedListener<Self, T> where
Self: Sized,
Combine two listeners.
You can call this function multiple times to combine more listeners.
fn tls(self, config: TlsConfig) -> TlsListener<Self> where
Self: Sized,
fn tls(self, config: TlsConfig) -> TlsListener<Self> where
Self: Sized,
This is supported on crate feature
tls
only.Consume this listener and return a new TLS listener.