Trait wrpc_transport::frame::Accept
source · 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§
Object Safety§
This trait is not object safe.