pub enum PreemptDisabled {}Expand description
A guardian that disables preemption while holding a lock.
Trait Implementations§
Source§impl SpinGuardian for PreemptDisabled
impl SpinGuardian for PreemptDisabled
Source§type Guard = DisabledPreemptGuard
type Guard = DisabledPreemptGuard
The guard type for holding a spin lock or a spin-based write lock.
Source§type ReadGuard = DisabledPreemptGuard
type ReadGuard = DisabledPreemptGuard
The guard type for holding a spin-based read lock.
Source§fn read_guard() -> Self::Guard
fn read_guard() -> Self::Guard
Creates a new read guard.
Auto Trait Implementations§
impl Freeze for PreemptDisabled
impl RefUnwindSafe for PreemptDisabled
impl Send for PreemptDisabled
impl Sync for PreemptDisabled
impl Unpin for PreemptDisabled
impl UnwindSafe for PreemptDisabled
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