Struct calloop::Token [−][src]
pub struct Token { /* fields omitted */ }
Expand description
A token (for implementation of the EventSource
trait)
This token is produced by the TokenFactory
and is used when calling the
EventSource
implementations to process event, in order
to identify which sub-source produced them.
You should forward it to the Poll
when registering your file descriptors.
Implementations
Produces an invalid Token, that is not recognized by the event loop.
Can be used as a placeholder to avoid Option<Token>
Check if this token is the invalid token
Provide a copy of the Token with the given sub_id
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more