pub trait Accept {
type Context: Send + Sync + 'static;
type Outgoing: AsyncWrite + Send + Sync + Unpin + 'static;
type Incoming: AsyncRead + Send + Sync + Unpin + 'static;
// Required method
fn accept(
&self,
) -> impl Future<Output = Result<(Self::Context, Self::Outgoing, Self::Incoming)>>;
}
Expand description
Accepts connections on a transport
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.