Struct calloop::sys::TokenFactory
source · pub struct TokenFactory {
next_token: TokenInner,
}
Expand description
Factory for creating tokens in your registrations
When composing event sources, each sub-source needs to have its own token to identify itself. This factory is provided to produce such unique tokens.
Fields§
§next_token: TokenInner
Implementations§
source§impl TokenFactory
impl TokenFactory
pub(crate) fn new(token: TokenInner) -> TokenFactory
sourcepub(crate) fn registration_token(&self) -> RegistrationToken
pub(crate) fn registration_token(&self) -> RegistrationToken
Get the “raw” registration token of this TokenFactory
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenFactory
impl RefUnwindSafe for TokenFactory
impl Send for TokenFactory
impl Sync for TokenFactory
impl Unpin for TokenFactory
impl UnwindSafe for TokenFactory
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