diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-12-05 08:54:48 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2017-12-05 08:54:48 -0800 |
commit | 46062794aaedf1d2f8385124fa5b7061317a2527 (patch) | |
tree | bbb900a8b7b32733778fd65af132e58cd869e898 /examples/udp-codec.rs | |
parent | 2e584228901db1fd57d68676b4978389fcbecff2 (diff) |
Tweak the `PollEvented::deregister` signature
This commit changes the `PollEvented::deregister` signature from
fn deregister(self, handle: &Handle) -> io::Result<()>
to
fn deregister(&self) -> io::Result<()>
Now that the handles are `Send` and `Sync` there's no longer any need to pass it
in (it's already stored in the `PollEvented` itself). Additionally this switches
to `&self` instead of `self` to allow reclamation of the internal resources if
necessary.
Diffstat (limited to 'examples/udp-codec.rs')
0 files changed, 0 insertions, 0 deletions