Struct rotor::mio::Selector []

pub struct Selector {
    // some fields omitted
}

Methods

impl Selector

fn new() -> Result<SelectorError>

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

Trait Implementations

impl Debug for Selector

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Drop for Selector

fn drop(&mut self)