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§
sourcefn write_count(&self, v: u64) -> Result<()>
 
fn write_count(&self, v: u64) -> Result<()>
Adds v to the eventfd’s count, blocking until this won’t overflow the count.
sourcefn read_count(&self) -> Result<u64>
 
fn read_count(&self) -> Result<u64>
Blocks until the the eventfd’s count is non-zero, then resets the count to zero.