Trait base::sys::linux::event::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§


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

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


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

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