Struct sync_preemption::DisablePreemption
source · pub struct DisablePreemption {}
Expand description
A deadlock prevention method that disables preemption.
Trait Implementations§
source§impl Clone for DisablePreemption
impl Clone for DisablePreemption
source§fn clone(&self) -> DisablePreemption
fn clone(&self) -> DisablePreemption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DeadlockPrevention for DisablePreemption
impl DeadlockPrevention for DisablePreemption
source§impl Debug for DisablePreemption
impl Debug for DisablePreemption
source§impl Default for DisablePreemption
impl Default for DisablePreemption
source§fn default() -> DisablePreemption
fn default() -> DisablePreemption
Returns the “default value” for a type. Read more
source§impl Hash for DisablePreemption
impl Hash for DisablePreemption
source§impl Ord for DisablePreemption
impl Ord for DisablePreemption
source§fn cmp(&self, other: &DisablePreemption) -> Ordering
fn cmp(&self, other: &DisablePreemption) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DisablePreemption> for DisablePreemption
impl PartialEq<DisablePreemption> for DisablePreemption
source§fn eq(&self, other: &DisablePreemption) -> bool
fn eq(&self, other: &DisablePreemption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DisablePreemption> for DisablePreemption
impl PartialOrd<DisablePreemption> for DisablePreemption
source§fn partial_cmp(&self, other: &DisablePreemption) -> Option<Ordering>
fn partial_cmp(&self, other: &DisablePreemption) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DisablePreemption
impl Eq for DisablePreemption
impl StructuralEq for DisablePreemption
impl StructuralPartialEq for DisablePreemption
Auto Trait Implementations§
impl RefUnwindSafe for DisablePreemption
impl Send for DisablePreemption
impl Sync for DisablePreemption
impl Unpin for DisablePreemption
impl UnwindSafe for DisablePreemption
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
§impl<P> MutexFlavor for Pwhere
P: DeadlockPrevention,
impl<P> MutexFlavor for Pwhere P: DeadlockPrevention,
§type Guard = <P as DeadlockPrevention>::Guard
type Guard = <P as DeadlockPrevention>::Guard
Additional guard stored in the synchronisation guards.
§fn try_lock<T, 'a>(
mutex: &'a SpinMutex<T, Spin>,
_: &'a <P as MutexFlavor>::LockData
) -> Option<(SpinMutexGuard<'a, T>, <P as MutexFlavor>::Guard)>where
T: ?Sized,
fn try_lock<T, 'a>( mutex: &'a SpinMutex<T, Spin>, _: &'a <P as MutexFlavor>::LockData ) -> Option<(SpinMutexGuard<'a, T>, <P as MutexFlavor>::Guard)>where T: ?Sized,
Tries to acquire the given mutex.
§fn lock<T, 'a>(
mutex: &'a SpinMutex<T, Spin>,
_: &'a <P as MutexFlavor>::LockData
) -> (SpinMutexGuard<'a, T>, <P as MutexFlavor>::Guard)where
T: ?Sized,
fn lock<T, 'a>( mutex: &'a SpinMutex<T, Spin>, _: &'a <P as MutexFlavor>::LockData ) -> (SpinMutexGuard<'a, T>, <P as MutexFlavor>::Guard)where T: ?Sized,
Acquires the given mutex.
§fn post_unlock(_: &<P as MutexFlavor>::LockData)
fn post_unlock(_: &<P as MutexFlavor>::LockData)
Performs any necessary actions after unlocking the mutex.
§impl<P> RwLockFlavor for Pwhere
P: DeadlockPrevention,
impl<P> RwLockFlavor for Pwhere P: DeadlockPrevention,
§type Guard = <P as DeadlockPrevention>::Guard
type Guard = <P as DeadlockPrevention>::Guard
Additional guard stored in the synchronisation guards.
§fn try_read<T, 'a>(
rw_lock: &'a RwLock<T, Spin>,
_: &'a <P as RwLockFlavor>::LockData
) -> Option<(RwLockReadGuard<'a, T>, <P as RwLockFlavor>::Guard)>where
T: ?Sized,
fn try_read<T, 'a>( rw_lock: &'a RwLock<T, Spin>, _: &'a <P as RwLockFlavor>::LockData ) -> Option<(RwLockReadGuard<'a, T>, <P as RwLockFlavor>::Guard)>where T: ?Sized,
Attempts to acquire the given lock with shared access.
§fn try_write<T, 'a>(
rw_lock: &'a RwLock<T, Spin>,
_: &'a <P as RwLockFlavor>::LockData
) -> Option<(RwLockWriteGuard<'a, T, Spin>, <P as RwLockFlavor>::Guard)>where
T: ?Sized,
fn try_write<T, 'a>( rw_lock: &'a RwLock<T, Spin>, _: &'a <P as RwLockFlavor>::LockData ) -> Option<(RwLockWriteGuard<'a, T, Spin>, <P as RwLockFlavor>::Guard)>where T: ?Sized,
Attempts to acquire the given lock with exclusive access.
§fn read<T, 'a>(
rw_lock: &'a RwLock<T, Spin>,
_: &'a <P as RwLockFlavor>::LockData
) -> (RwLockReadGuard<'a, T>, <P as RwLockFlavor>::Guard)where
T: ?Sized,
fn read<T, 'a>( rw_lock: &'a RwLock<T, Spin>, _: &'a <P as RwLockFlavor>::LockData ) -> (RwLockReadGuard<'a, T>, <P as RwLockFlavor>::Guard)where T: ?Sized,
Acquires the given lock with shared access.
§fn write<T, 'a>(
rw_lock: &'a RwLock<T, Spin>,
_: &'a <P as RwLockFlavor>::LockData
) -> (RwLockWriteGuard<'a, T, Spin>, <P as RwLockFlavor>::Guard)where
T: ?Sized,
fn write<T, 'a>( rw_lock: &'a RwLock<T, Spin>, _: &'a <P as RwLockFlavor>::LockData ) -> (RwLockWriteGuard<'a, T, Spin>, <P as RwLockFlavor>::Guard)where T: ?Sized,
Acquires the given lock with exclusive access.
§fn post_unlock(_: &<P as RwLockFlavor>::LockData, _: bool)
fn post_unlock(_: &<P as RwLockFlavor>::LockData, _: bool)
Performs any necessary actions after unlocking the lock.