Trait base::sys::linux::EventExt

source ·
pub trait EventExt {
    // Required methods
    fn write_count(&self, v: u64) -> Result<()>;
    fn read_count(&self) -> Result<u64>;
}
Expand description

Linux specific extensions to Event.

Required Methods§

source

fn write_count(&self, v: u64) -> Result<()>

Adds v to the eventfd’s count, blocking until this won’t overflow the count.

source

fn read_count(&self) -> Result<u64>

Blocks until the the eventfd’s count is non-zero, then resets the count to zero.

Implementors§