Trait base::EventExt

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

Linux specific extensions to Event.

Required Methods§

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

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

Implementors§