Trait hyper_serve::accept::Accept
source · pub trait Accept<I, S> {
type Stream;
type Service;
type Future: Future<Output = Result<(Self::Stream, Self::Service)>>;
// Required method
fn accept(&self, stream: I, service: S) -> Self::Future;
}
Expand description
An asynchronous function to modify io stream and service.
Required Associated Types§
Required Methods§
Implementors§
source§impl<A, I, S> Accept<I, S> for OpenSSLAcceptor<A>
Available on crate feature tls-openssl
only.
impl<A, I, S> Accept<I, S> for OpenSSLAcceptor<A>
Available on crate feature
tls-openssl
only.source§impl<A, I, S> Accept<I, S> for RustlsAcceptor<A>
Available on crate feature tls-rustls
only.
impl<A, I, S> Accept<I, S> for RustlsAcceptor<A>
Available on crate feature
tls-rustls
only.