pub trait Listener<Si, St>:
Sync
+ Send
+ 'static{
// Required method
fn accept(
&mut self,
) -> impl Future<Output = Result<(SocketAddr, Si, St), Error>> + Send;
}Expand description
Interface that any runtime must implement to handle incoming network connections.
Required Methods§
Object Safety§
This trait is not object safe.