Struct Cr8
pub struct Cr8;Expand description
Contains the task priority.
Implementations§
§impl Cr8
impl Cr8
pub fn read() -> Option<PriorityClass>
pub fn read() -> Option<PriorityClass>
Read the current priority class in CR8.
pub fn write(priority_class: Option<PriorityClass>)
pub fn write(priority_class: Option<PriorityClass>)
Write the priority class to CR8.
pub fn update<F>(f: F)
pub fn update<F>(f: F)
Updates the priority class in CR8.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cr8
impl RefUnwindSafe for Cr8
impl Send for Cr8
impl Sync for Cr8
impl Unpin for Cr8
impl UnsafeUnpin for Cr8
impl UnwindSafe for Cr8
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> 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