pub struct CpuPin<'scope> { /* private fields */ }Expand description
Scoped proof that execution cannot migrate away from one validated CPU.
The token can only be created by with_cpu_pin. Its invariant lifetime
and higher-ranked callback prevent it from escaping the caller’s migration
guard or offline-CPU critical section.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'scope> !Send for CpuPin<'scope>
impl<'scope> !Sync for CpuPin<'scope>
impl<'scope> !UnwindSafe for CpuPin<'scope>
impl<'scope> Freeze for CpuPin<'scope>
impl<'scope> RefUnwindSafe for CpuPin<'scope>
impl<'scope> Unpin for CpuPin<'scope>
impl<'scope> UnsafeUnpin for CpuPin<'scope>
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