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§
sourcetype FdReady: 'static + PollFdReady
type FdReady: 'static + PollFdReady
The file descriptor ready type.
Required Methods§
sourcefn new_fd_ready(&self, fd: RawFd) -> Result<Self::FdReady>
fn new_fd_ready(&self, fd: RawFd) -> Result<Self::FdReady>
Returns a new object for polling file descriptor readiness.