#[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§
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