Trait pal_async::wait::WaitDriver

source ·
pub trait WaitDriver: Unpin {
    type Wait: 'static + PollWait;

    // Required method
    fn new_wait(&self, fd: RawFd, read_size: usize) -> Result<Self::Wait>;
}
Expand description

A trait for driving kernel event (Windows events or Unix eventfd) waits.

Required Associated Types§

source

type Wait: 'static + PollWait

The wait object.

Required Methods§

source

fn new_wait(&self, fd: RawFd, read_size: usize) -> Result<Self::Wait>

Creates a new wait.

Signals will be consumed using reads of read_size bytes, with 8-byte buffer alignment. read_size must be at most MAXIMUM_WAIT_READ_SIZE bytes.

Implementors§