VsockEpollListener

Trait VsockEpollListener 

Source
pub trait VsockEpollListener: AsRawFd {
    // Required methods
    fn get_polled_evset(&self) -> EventSet;
    fn notify(&mut self, evset: EventSet);
}
Expand description

A passive, event-driven object, that needs to be notified whenever an epoll-able event occurs. An event-polling control loop will use as_raw_fd() and get_polled_evset() to query the listener for the file descriptor and the set of events it’s interested in. When such an event occurs, the control loop will route the event to the listener via notify().

Required Methods§

Source

fn get_polled_evset(&self) -> EventSet

Get the set of events for which the listener wants to be notified.

Source

fn notify(&mut self, evset: EventSet)

Notify the listener that one ore more events have occurred.

Implementors§