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.