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

IO stream produced by accept.

Service produced by accept.

Future return value.

Required methods

Process io stream and service asynchronously.

Implementors