#[repr(u8)]pub(crate) enum LockRank {
Global = 1,
IdentityW = 2,
IdentityR = 3,
Blocked = 4,
Local = 5,
TaskInternal = 6,
}Expand description
Lock ranks matching the total order documented in the module header.
Variants§
Global = 1
GLOBAL_SCHED_STATE — rank 1.
IdentityW = 2
SCHED_IDENTITY write — rank 2.
IdentityR = 3
SCHED_IDENTITY read — rank 2R (must not chain to scheduler locks).
Blocked = 4
BLOCKED_TASKS — rank 3.
Local = 5
LOCAL_SCHEDULERS[cpu] — rank 4.
TaskInternal = 6
Task/Process internal — rank 5.
Trait Implementations§
impl Copy for LockRank
impl Eq for LockRank
impl StructuralPartialEq for LockRank
Auto Trait Implementations§
impl Freeze for LockRank
impl RefUnwindSafe for LockRank
impl Send for LockRank
impl Sync for LockRank
impl Unpin for LockRank
impl UnsafeUnpin for LockRank
impl UnwindSafe for LockRank
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more