pub trait EventPort: Send + Sync { // Required method fn handle_event(&self, flag: u16); // Provided method fn os_event(&self) -> Option<&Event> { ... } }