pub struct TaskRef { /* private fields */ }Available on crate feature
full only.Expand description
A cheap to copy handle to a task.
Implementations§
Source§impl TaskRef
impl TaskRef
pub const MAX_GENERATION: usize
pub fn as_ptr(self) -> NonNull<u64>
pub fn generation(self) -> usize
pub fn addr_eq(self, other: TaskRef) -> bool
pub fn into_raw(self) -> TaggedNonNull<u64>
Trait Implementations§
impl Copy for TaskRef
impl Eq for TaskRef
Source§impl Ord for TaskRef
impl Ord for TaskRef
1.21.0 (const: unstable)§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable)§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TaskRef
impl PartialOrd for TaskRef
impl Send for TaskRef
impl StructuralPartialEq for TaskRef
impl Sync for TaskRef
Auto Trait Implementations§
impl Freeze for TaskRef
impl RefUnwindSafe for TaskRef
impl Unpin for TaskRef
impl UnsafeUnpin for TaskRef
impl UnwindSafe for TaskRef
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more