pub trait ListeningSocket: Listener + Unpin { }
Expand description

Helper trait for Listener.

This trait encapsulates all requirements for the Socket type of a Listener.

The trait has a blanket implementation, so you can not implement it for your own types.

You can use it as trait bound for generic arguments, but you should not rely on any of the items in this trait.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Socket> ListeningSocket for Socket
where Socket: Listener + Unpin, Socket::Connection: IntoTransport,