pub struct TaskLocalState { /* private fields */ }Expand description
Architecture-neutral task state participating in the final switch tail.
Architecture switch tails consume the current-header pointer whenever the hardware provides a task register independent of kernel TLS. Backends whose task register is also the TLS base use the CPU runtime anchor for current. Keeping both values adjacent centralizes their switch-time ownership.
Implementations§
Source§impl TaskLocalState
impl TaskLocalState
Sourcepub fn set_context_header(&mut self, header: NonNull<ExecutionContextHeader>)
pub fn set_context_header(&mut self, header: NonNull<ExecutionContextHeader>)
Sets the stable task-owned execution-context header.
Sourcepub const fn context_header(&self) -> Option<NonNull<ExecutionContextHeader>>
pub const fn context_header(&self) -> Option<NonNull<ExecutionContextHeader>>
Returns the configured task-owned execution-context header.
Trait Implementations§
Source§impl Debug for TaskLocalState
impl Debug for TaskLocalState
Source§impl Default for TaskLocalState
impl Default for TaskLocalState
Source§fn default() -> TaskLocalState
fn default() -> TaskLocalState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskLocalState
impl RefUnwindSafe for TaskLocalState
impl Send for TaskLocalState
impl Sync for TaskLocalState
impl Unpin for TaskLocalState
impl UnsafeUnpin for TaskLocalState
impl UnwindSafe for TaskLocalState
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