pub fn has_event(f: &File) -> Result<bool>
Check if the file has an event available to read.
For gpiochip files the events are LineInfoChangeEvent. For line request files the events are LineEdgeEvent.