Struct mio::Registration [] [src]

pub struct Registration {
    // some fields omitted
}

Handle to a Poll registration. Used for registering custom types for event notifications.

Methods

impl Registration

fn new(poll: &Poll, token: Token, interest: Ready, opts: PollOpt) -> (Registration, SetReadiness)

Create a new Registration associated with the given Poll instance. The returned Registration will be associated with this Poll for its entire lifetime.

fn update(&self, poll: &Poll, token: Token, interest: Ready, opts: PollOpt) -> Result<()>

fn deregister(&self, poll: &Poll) -> Result<()>

Trait Implementations

impl Drop for Registration

fn drop(&mut self)

impl Debug for Registration

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

impl Send for Registration