pub struct TaskInner { /* private fields */ }Expand description
Internal task structure
Contains the core task data that is shared via TaskRef.
Implementations§
Source§impl TaskInner
impl TaskInner
Sourcepub fn cpu_affinity(&self) -> usize
pub fn cpu_affinity(&self) -> usize
Returns the CPU affinity mask
Sourcepub fn set_cpu_affinity(&self, mask: usize)
pub fn set_cpu_affinity(&self, mask: usize)
Sets the CPU affinity mask
Sourcepub fn set_priority(&self, priority: u32)
pub fn set_priority(&self, priority: u32)
Sets the task priority
Sourcepub fn on_last_ref(&self)
pub fn on_last_ref(&self)
Called when the last TaskRef is dropped
Override this in implementations to handle cleanup.
Auto Trait Implementations§
impl !Freeze for TaskInner
impl !RefUnwindSafe for TaskInner
impl Send for TaskInner
impl Sync for TaskInner
impl Unpin for TaskInner
impl UnsafeUnpin for TaskInner
impl UnwindSafe for TaskInner
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more