Struct mio::Registration
[−]
[src]
pub struct Registration { /* fields omitted */ }
Handle to a Poll registration. Used for registering custom types for event notifications.
Methods
impl Registration
[src]
fn new(poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt)
-> (Registration, SetReadiness)
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<()>
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt)
-> Result<()>