Struct mio::Selector
[−]
[src]
pub struct Selector { // some fields omitted }
Methods
impl Selector
[src]
fn new() -> Result<Selector>
fn select(&mut self, evts: &mut Events, timeout_ms: 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