pub struct TokenInner<P>where
P: WirePad,{ /* private fields */ }Implementations§
Source§impl<P> Token<P>where
P: WirePad,
impl<P> Token<P>where
P: WirePad,
pub const fn new(slot: TokenSlot, epoch: TokenEpoch) -> Token<P>
pub fn from_index(index: usize, epoch: TokenEpoch) -> Token<P>
pub fn from_index_raw(index: usize, epoch: u32) -> Token<P>
pub fn next_for_slot(index: usize, seq: &mut u32) -> Token<P>
pub const fn parts(self) -> (usize, u32)
pub fn slot_raw(self) -> u16
pub fn epoch_raw(self) -> u32
Trait Implementations§
Source§impl<P> BackendToken for Token<P>where
P: WirePad,
impl<P> BackendToken for Token<P>where
P: WirePad,
impl<P> Copy for Token<P>
impl<P> Eq for Token<P>
impl<P> StructuralPartialEq for Token<P>where
P: WirePad,
Auto Trait Implementations§
impl<P> Freeze for Token<P>where
P: Freeze,
impl<P> RefUnwindSafe for Token<P>where
P: RefUnwindSafe,
impl<P> Send for Token<P>where
P: Send,
impl<P> Sync for Token<P>where
P: Sync,
impl<P> Unpin for Token<P>where
P: Unpin,
impl<P> UnsafeUnpin for Token<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Token<P>where
P: UnwindSafe,
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