#[repr(transparent)]pub struct Tpl(pub usize);
Expand description
Task priority level.
Although the UEFI specification repeatedly states that only the variants specified below should be used in application-provided input, as the other are reserved for internal firmware use, it might still happen that the firmware accidentally discloses one of these internal TPLs to us.
Since feeding an unexpected variant to a Rust enum is UB, this means that this C enum must be interfaced via the newtype pattern.
Tuple Fields§
§0: usize
Implementations§
source§impl Tpl
impl Tpl
sourcepub const APPLICATION: Tpl = _
pub const APPLICATION: Tpl = _
Normal task execution level.
sourcepub const NOTIFY: Tpl = _
pub const NOTIFY: Tpl = _
Notifications are masked at this level.
This is used in critical sections of code.
sourcepub const HIGH_LEVEL: Tpl = _
pub const HIGH_LEVEL: Tpl = _
Highest priority level.
Even processor interrupts are disable at this level.
Trait Implementations§
source§impl Ord for Tpl
impl Ord for Tpl
source§impl PartialOrd for Tpl
impl PartialOrd for Tpl
impl Copy for Tpl
impl Eq for Tpl
impl StructuralPartialEq for Tpl
Auto Trait Implementations§
impl Freeze for Tpl
impl RefUnwindSafe for Tpl
impl Send for Tpl
impl Sync for Tpl
impl Unpin for Tpl
impl UnwindSafe for Tpl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)