Struct rotor::mio::Selector
[−]
[src]
pub struct Selector { // some fields omitted }
Methods
impl Selector
fn new() -> Result<Selector, Error>
fn id(&self) -> usize
fn select(&mut self, evts: &mut Events, timeout_ms: Option<usize>) -> Result<(), Error>
Wait for events from the OS
fn register(&mut self, fd: i32, token: Token, interests: EventSet, opts: PollOpt) -> Result<(), Error>
Register event interests for the given IO handle with the OS
fn reregister(&mut self, fd: i32, token: Token, interests: EventSet, opts: PollOpt) -> Result<(), Error>
Register event interests for the given IO handle with the OS
fn deregister(&mut self, fd: i32) -> Result<(), Error>
Deregister event interests for the given IO handle with the OS