Struct cros_async::waker::WakerToken
source · pub(crate) struct WakerToken(pub(crate) usize);
Expand description
Wrapper around a usize used as a token to uniquely identify a pending waker.
Tuple Fields§
§0: usize
Trait Implementations§
source§impl Clone for WakerToken
impl Clone for WakerToken
source§fn clone(&self) -> WakerToken
fn clone(&self) -> WakerToken
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 WakerToken
impl Debug for WakerToken
source§impl Hash for WakerToken
impl Hash for WakerToken
source§impl PartialEq for WakerToken
impl PartialEq for WakerToken
source§fn eq(&self, other: &WakerToken) -> bool
fn eq(&self, other: &WakerToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WakerToken
impl Eq for WakerToken
impl StructuralPartialEq for WakerToken
Auto Trait Implementations§
impl RefUnwindSafe for WakerToken
impl Send for WakerToken
impl Sync for WakerToken
impl Unpin for WakerToken
impl UnwindSafe for WakerToken
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