pub trait Resource:
AsRawFd
+ WriteAtomic
+ Send {
type Event;
// Required methods
fn interests(&self) -> IoType ⓘ;
fn handle_io(&mut self, io: Io) -> Option<Self::Event>;
}Expand description
A resource which can be managed by the reactor.
Required Associated Types§
Sourcetype Event
type Event
Events which resource may generate upon receiving I/O from the reactor via
Self::handle_io. These events are passed to the reactor crate::Handler.