#[repr(i32)]pub enum MutexPriorityInheritance {
None = 0,
Inherit = 1,
Protect = 2,
}Expand description
Defines how the priority of a mutex owning thread changes when another thread with an higher priority would like to acquire the mutex.
Variants§
None = 0
No change in priority
Inherit = 1
The priority of a thread holding the mutex is always promoted to the priority set up
in MutexBuilder::priority_ceiling().
Protect = 2
The priority of a thread holding the mutex is promoted to the priority of the highest priority thread waiting for the lock.
Trait Implementations§
source§impl Clone for MutexPriorityInheritance
impl Clone for MutexPriorityInheritance
source§fn clone(&self) -> MutexPriorityInheritance
fn clone(&self) -> MutexPriorityInheritance
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 Debug for MutexPriorityInheritance
impl Debug for MutexPriorityInheritance
source§impl Hash for MutexPriorityInheritance
impl Hash for MutexPriorityInheritance
source§impl PartialEq for MutexPriorityInheritance
impl PartialEq for MutexPriorityInheritance
source§fn eq(&self, other: &MutexPriorityInheritance) -> bool
fn eq(&self, other: &MutexPriorityInheritance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for MutexPriorityInheritance
impl Eq for MutexPriorityInheritance
impl StructuralPartialEq for MutexPriorityInheritance
Auto Trait Implementations§
impl Freeze for MutexPriorityInheritance
impl RefUnwindSafe for MutexPriorityInheritance
impl Send for MutexPriorityInheritance
impl Sync for MutexPriorityInheritance
impl Unpin for MutexPriorityInheritance
impl UnwindSafe for MutexPriorityInheritance
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