pub enum InterruptsOnDrop {
Restore,
KeepDisabled,
}Expand description
Controls whether dropping a guard reconstructed via
SpinLock::adopt_locked re-enables interrupts or keeps them disabled.
Variants§
Restore
Re-enable interrupts after unlocking when the guard is dropped.
KeepDisabled
Leave interrupts disabled after unlocking when the guard is dropped.
Trait Implementations§
Source§impl Clone for InterruptsOnDrop
impl Clone for InterruptsOnDrop
impl Copy for InterruptsOnDrop
Source§impl Debug for InterruptsOnDrop
impl Debug for InterruptsOnDrop
impl Eq for InterruptsOnDrop
Source§impl PartialEq for InterruptsOnDrop
impl PartialEq for InterruptsOnDrop
impl StructuralPartialEq for InterruptsOnDrop
Auto Trait Implementations§
impl Forget for InterruptsOnDrop
impl Freeze for InterruptsOnDrop
impl Move for InterruptsOnDrop
impl RefUnwindSafe for InterruptsOnDrop
impl Send for InterruptsOnDrop
impl Sync for InterruptsOnDrop
impl Unpin for InterruptsOnDrop
impl UnsafeUnpin for InterruptsOnDrop
impl UnwindSafe for InterruptsOnDrop
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)