pub struct CurrentThreadToken { /* private fields */ }Expand description
Move-only proof of the scheduler thread executing this task context.
Scheduler-adjacent primitives may retain this token on the current stack across preemption and park/resume, then reuse it for bounded metadata transitions. It owns no scheduler resource and cannot cross threads.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for CurrentThreadToken
impl !Sync for CurrentThreadToken
impl Freeze for CurrentThreadToken
impl RefUnwindSafe for CurrentThreadToken
impl Unpin for CurrentThreadToken
impl UnsafeUnpin for CurrentThreadToken
impl UnwindSafe for CurrentThreadToken
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