Struct calloop::Token [−][src]
A token (for implementation of the EventSource
trait)
This token is generated by the event loop and is used when calling the
EventSource
implementations.
You should forward it to the Poll
when registering your file descriptors.
It also contains a publc field that you can change. In case your event
source needs to register more than one FD, you can register each with a
different value of the sub_id
field, to differentiate them. You can then
know which of these FD is ready by reading the sub_id
field of the
token you'll be given in the process_events
method of your source.
Fields
sub_id: u32
The source-internal ID
Trait Implementations
impl Clone for Token
[src]
impl Copy for Token
[src]
impl Debug for Token
[src]
impl PartialEq<Token> for Token
[src]
impl StructuralPartialEq for Token
[src]
Auto Trait Implementations
impl RefUnwindSafe for Token
[src]
impl Send for Token
[src]
impl Sync for Token
[src]
impl Unpin for Token
[src]
impl UnwindSafe for Token
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,