pub trait SocketReadyDriver: Unpin {
type SocketReady: 'static + PollSocketReady;
// Required method
fn new_socket_ready(&self, socket: RawFd) -> Result<Self::SocketReady>;
}
Expand description
A trait for driving socket ready polling.
Required Associated Types§
Sourcetype SocketReady: 'static + PollSocketReady
type SocketReady: 'static + PollSocketReady
The socket ready type.
Required Methods§
Sourcefn new_socket_ready(&self, socket: RawFd) -> Result<Self::SocketReady>
fn new_socket_ready(&self, socket: RawFd) -> Result<Self::SocketReady>
Creates a new object for polling socket readiness.