Struct mio::Selector [] [src]

pub struct Selector {
    // some fields omitted
}

Methods

impl Selector

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 Drop for Selector

fn drop(&mut self)

Derived Implementations

impl Debug for Selector

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