pub struct MigrationGuard { /* private fields */ }Expand description
Pins the current task to its CPU without disabling preemption or interrupts.
Pins nest. Remote affinity requests remain pending until the outermost pin is released. The guard cannot be transferred to another task.
Implementations§
Trait Implementations§
Source§impl Drop for MigrationGuard
impl Drop for MigrationGuard
Auto Trait Implementations§
impl !RefUnwindSafe for MigrationGuard
impl !Send for MigrationGuard
impl !Sync for MigrationGuard
impl !UnwindSafe for MigrationGuard
impl Freeze for MigrationGuard
impl Unpin for MigrationGuard
impl UnsafeUnpin for MigrationGuard
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