pub struct Token { /* private fields */ }
Expand description
Token returned by the PollBundle on registration. Keep it with the registered handle, drop it
after the handle. This ensures that, internally, the corresponding mio::Token
will be
freed when the handle is dropped.
§Contract
You must keep this Token alive just as long as the mio::event::Source
handle.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more