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§

source

type SocketReady: 'static + PollSocketReady

The socket ready type.

Required Methods§

source

fn new_socket_ready(&self, socket: RawFd) -> Result<Self::SocketReady>

Creates a new object for polling socket readiness.

Implementors§