pub struct TaskHandle(/* private fields */);Implementations§
Source§impl TaskHandle
impl TaskHandle
pub fn from_task(task: &Task) -> Self
pub fn from_non_null(task: NonNull<Task>) -> Self
pub fn as_ptr(&self) -> *mut Task
pub fn as_non_null(&self) -> NonNull<Task>
pub fn task(&self) -> &Task
pub fn leaf_idx(&self) -> usize
pub fn signal_idx(&self) -> usize
pub fn bit_idx(&self) -> u8
pub fn global_id(&self, _tasks_per_leaf: usize) -> u32
Trait Implementations§
Source§impl Clone for TaskHandle
impl Clone for TaskHandle
Source§fn clone(&self) -> TaskHandle
fn clone(&self) -> TaskHandle
Returns a duplicate 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 TaskHandle
impl Debug for TaskHandle
impl Copy for TaskHandle
impl Send for TaskHandle
impl Sync for TaskHandle
Auto Trait Implementations§
impl Freeze for TaskHandle
impl !RefUnwindSafe for TaskHandle
impl Unpin for TaskHandle
impl !UnwindSafe for TaskHandle
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