Struct calloop::token::TokenInner
source · pub(crate) struct TokenInner {
id: u32,
version: u16,
sub_id: u16,
}
Fields§
§id: u32
§version: u16
§sub_id: u16
Implementations§
source§impl TokenInner
impl TokenInner
pub(crate) fn new(id: usize) -> Result<TokenInner, ()>
pub(crate) fn get_id(self) -> usize
pub(crate) fn same_source_as(self, other: TokenInner) -> bool
pub(crate) fn increment_version(self) -> TokenInner
pub(crate) fn increment_sub_id(self) -> TokenInner
pub(crate) fn forget_sub_id(self) -> TokenInner
Trait Implementations§
source§impl Clone for TokenInner
impl Clone for TokenInner
source§fn clone(&self) -> TokenInner
fn clone(&self) -> TokenInner
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 TokenInner
impl Debug for TokenInner
source§impl From<TokenInner> for usize
impl From<TokenInner> for usize
source§fn from(token: TokenInner) -> Self
fn from(token: TokenInner) -> Self
Converts to this type from the input type.
source§impl From<usize> for TokenInner
impl From<usize> for TokenInner
source§impl PartialEq for TokenInner
impl PartialEq for TokenInner
source§fn eq(&self, other: &TokenInner) -> bool
fn eq(&self, other: &TokenInner) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TokenInner
impl Eq for TokenInner
impl StructuralPartialEq for TokenInner
Auto Trait Implementations§
impl Freeze for TokenInner
impl RefUnwindSafe for TokenInner
impl Send for TokenInner
impl Sync for TokenInner
impl Unpin for TokenInner
impl UnwindSafe for TokenInner
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