pub struct Token<'a, F: OwnedRawFd> { /* private fields */ }Expand description
Opaque type used to refer to single files registered with an epoll instance
In debug mode it has extra fields to ensure you’re only using it with the epoll instance it came from, but in release mode these fields are stripped out.
Implementations§
Source§impl<'a, F: OwnedRawFd> Token<'a, F>
impl<'a, F: OwnedRawFd> Token<'a, F>
Sourcepub fn into_file(self) -> F
pub fn into_file(self) -> F
Consumes this token and returns the contained file
This does not remove the file from any epoll instances it has been added to.
Trait Implementations§
Auto Trait Implementations§
impl<'a, F> Freeze for Token<'a, F>where
F: Freeze,
impl<'a, F> RefUnwindSafe for Token<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for Token<'a, F>where
F: Send,
impl<'a, F> Sync for Token<'a, F>where
F: Sync,
impl<'a, F> Unpin for Token<'a, F>where
F: Unpin,
impl<'a, F> UnwindSafe for Token<'a, F>where
F: UnwindSafe,
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