Struct calloop::loop_logic::RegistrationToken
source · pub struct RegistrationToken {
inner: TokenInner,
}
Expand description
A token representing a registration in the EventLoop
.
This token is given to you by the EventLoop
when an EventSource
is inserted or
a Dispatcher
is registered. You can use it to disable,
enable, update`,
remove or kill it.
Fields§
§inner: TokenInner
Implementations§
source§impl RegistrationToken
impl RegistrationToken
sourcepub(crate) fn new(inner: TokenInner) -> Self
pub(crate) fn new(inner: TokenInner) -> Self
Create the RegistrationToken corresponding to the given raw key
This is needed because some methods use RegistrationToken
s as
raw usizes within this crate
Trait Implementations§
source§impl Clone for RegistrationToken
impl Clone for RegistrationToken
source§fn clone(&self) -> RegistrationToken
fn clone(&self) -> RegistrationToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RegistrationToken
impl Debug for RegistrationToken
source§impl PartialEq for RegistrationToken
impl PartialEq for RegistrationToken
source§fn eq(&self, other: &RegistrationToken) -> bool
fn eq(&self, other: &RegistrationToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RegistrationToken
impl Eq for RegistrationToken
impl StructuralPartialEq for RegistrationToken
Auto Trait Implementations§
impl Freeze for RegistrationToken
impl RefUnwindSafe for RegistrationToken
impl Send for RegistrationToken
impl Sync for RegistrationToken
impl Unpin for RegistrationToken
impl UnwindSafe for RegistrationToken
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