Struct mio::Selector [] [src]

pub struct Selector {
    // some fields omitted
}

Methods

impl Selector
[src]

fn new() -> Result<Selector>

fn id(&self) -> usize

fn select(&mut self, evts: &mut Events, timeout_ms: Option<usize>) -> Result<()>

Wait for events from the OS

fn register(&mut self, fd: RawFd, token: Token, interests: EventSet, opts: PollOpt) -> Result<()>

Register event interests for the given IO handle with the OS

fn reregister(&mut self, fd: RawFd, token: Token, interests: EventSet, opts: PollOpt) -> Result<()>

Register event interests for the given IO handle with the OS

fn deregister(&mut self, fd: RawFd) -> Result<()>

Deregister event interests for the given IO handle with the OS

Trait Implementations

impl Debug for Selector
[src]

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

Formats the value using the given formatter.

impl Drop for Selector
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more