Trait pal_async::fd::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§