Trait axum_server::accept::Accept [−][src]
pub trait Accept<I, S> {
type Stream;
type Service;
type Future: Future<Output = Result<(Self::Stream, Self::Service)>>;
fn accept(&self, stream: I, service: S) -> Self::Future;
}
Expand description
An asynchronous function to modify io stream and service.
Associated Types
Required methods
Implementors
impl<A, I, S> Accept<I, S> for RustlsAcceptor<A> where
A: Accept<I, S>,
A::Stream: AsyncRead + AsyncWrite + Unpin,
This is supported on crate feature tls-rustls
only.
impl<A, I, S> Accept<I, S> for RustlsAcceptor<A> where
A: Accept<I, S>,
A::Stream: AsyncRead + AsyncWrite + Unpin,
This is supported on crate feature
tls-rustls
only.