Skip to main content

ElevatedRunLevel

Enum ElevatedRunLevel 

Source
#[repr(u8)]
pub enum ElevatedRunLevel {
Show 15 variants Level1 = 1, Level2 = 2, Level3 = 3, Level4 = 4, Level5 = 5, Level6 = 6, Level7 = 7, Level8 = 8, Level9 = 9, Level10 = 10, Level11 = 11, Level12 = 12, Level13 = 13, Level14 = 14, Level15 = 15,
}
Expand description

Interrupt run levels.

Variants§

§

Level1 = 1

Run level 1.

§

Level2 = 2

Run level 2.

§

Level3 = 3

Run level 3.

§

Level4 = 4

Run level 4.

§

Level5 = 5

Run level 5.

§

Level6 = 6

Run level 6.

§

Level7 = 7

Run level 7.

§

Level8 = 8

Run level 8.

§

Level9 = 9

Run level 9.

§

Level10 = 10

Run level 10.

§

Level11 = 11

Run level 11.

§

Level12 = 12

Run level 12.

§

Level13 = 13

Run level 13.

§

Level14 = 14

Run level 14.

§

Level15 = 15

Run level 15.

Implementations§

Source§

impl ElevatedRunLevel

Source

pub const fn from_priority(priority: Priority) -> Self

Converts a Priority into an ElevatedRunLevel.

Source§

impl ElevatedRunLevel

Source

pub const fn max() -> ElevatedRunLevel

Available on crate feature unstable only.

Returns the highest run level

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source

pub const fn min() -> ElevatedRunLevel

Minimum elevated run level

Trait Implementations§

Source§

impl Clone for ElevatedRunLevel

Source§

fn clone(&self) -> ElevatedRunLevel

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ElevatedRunLevel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Priority> for ElevatedRunLevel

Source§

fn from(priority: Priority) -> Self

Converts to this type from the input type.
Source§

impl Hash for ElevatedRunLevel

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
Source§

impl Ord for ElevatedRunLevel

Source§

fn cmp(&self, other: &ElevatedRunLevel) -> Ordering

This method returns an [Ordering] between self and other. Read more
1.21.0§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<ElevatedRunLevel> for RunLevel

Source§

fn eq(&self, other: &ElevatedRunLevel) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for ElevatedRunLevel

Source§

fn eq(&self, other: &ElevatedRunLevel) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ElevatedRunLevel

Source§

fn partial_cmp(&self, other: &ElevatedRunLevel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<u32> for ElevatedRunLevel

Available on crate feature unstable only.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source§

type Error = PriorityError

The type returned in the event of a conversion error.
Source§

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ElevatedRunLevel

Source§

impl Eq for ElevatedRunLevel

Source§

impl StructuralPartialEq for ElevatedRunLevel

Auto Trait Implementations§

§

impl Freeze for ElevatedRunLevel

§

impl RefUnwindSafe for ElevatedRunLevel

§

impl Send for ElevatedRunLevel

§

impl Sync for ElevatedRunLevel

§

impl Unpin for ElevatedRunLevel

§

impl UnsafeUnpin for ElevatedRunLevel

§

impl UnwindSafe for ElevatedRunLevel

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.