Trait salvo_core::conn::Acceptor
source · pub trait Acceptor {
type Conn: HttpConnection + AsyncRead + AsyncWrite + Send + Unpin + 'static;
// Required methods
fn holdings(&self) -> &[Holding];
fn accept(
&mut self,
fuse_factory: Option<Arc<dyn FuseFactory + Sync + Send + 'static>>
) -> impl Future<Output = IoResult<Accepted<Self::Conn>>> + Send;
}
Expand description
Acceptor
represents an acceptor that can accept incoming connections.
Required Associated Types§
sourcetype Conn: HttpConnection + AsyncRead + AsyncWrite + Send + Unpin + 'static
type Conn: HttpConnection + AsyncRead + AsyncWrite + Send + Unpin + 'static
Conn type
Required Methods§
Object Safety§
This trait is not object safe.
Implementors§
source§impl Acceptor for TcpAcceptor
impl Acceptor for TcpAcceptor
type Conn = StraightStream<TcpStream>
source§impl Acceptor for UnixAcceptor
Available on Unix only.
impl Acceptor for UnixAcceptor
Available on Unix only.
type Conn = StraightStream<UnixStream>
source§impl<S, C, E> Acceptor for QuinnAcceptor<S, C, E>
Available on crate feature quinn
only.
impl<S, C, E> Acceptor for QuinnAcceptor<S, C, E>
Available on crate feature
quinn
only.type Conn = H3Connection
source§impl<S, C, T, E> Acceptor for NativeTlsAcceptor<S, C, T, E>
Available on crate feature native-tls
only.
impl<S, C, T, E> Acceptor for NativeTlsAcceptor<S, C, T, E>
Available on crate feature
native-tls
only.source§impl<S, C, T, E> Acceptor for OpensslAcceptor<S, C, T, E>
Available on crate feature openssl
only.
impl<S, C, T, E> Acceptor for OpensslAcceptor<S, C, T, E>
Available on crate feature
openssl
only.source§impl<S, C, T, E> Acceptor for RustlsAcceptor<S, C, T, E>
Available on crate feature rustls
only.
impl<S, C, T, E> Acceptor for RustlsAcceptor<S, C, T, E>
Available on crate feature
rustls
only.