Struct rotor::mio::Registration
[−]
[src]
pub struct Registration { /* 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<(), Error>
fn deregister(&self, poll: &Poll) -> Result<(), Error>
Trait Implementations
impl Debug for Registration
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.