pal_async::fd

Trait FdReadyDriver

Source
pub trait FdReadyDriver: Unpin {
    type FdReady: 'static + PollFdReady;

    // Required method
    fn new_fd_ready(&self, fd: RawFd) -> Result<Self::FdReady>;
}
Expand description

A trait for driving the polling of file descriptor readiness.

Required Associated Types§

Source

type FdReady: 'static + PollFdReady

The file descriptor ready type.

Required Methods§

Source

fn new_fd_ready(&self, fd: RawFd) -> Result<Self::FdReady>

Returns a new object for polling file descriptor readiness.

Implementors§