Trait pal_async::socket::SocketReadyDriver
source · 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.