#[non_exhaustive]#[repr(u16)]pub enum PreEolInfo {
Undefined = 0,
Normal = 1,
Warning = 2,
Urgent = 3,
}Expand description
End-of-life information.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Undefined = 0
Value not available
Normal = 1
< 80% of reserved blocks are consumed
Warning = 2
80% of reserved blocks are consumed
Urgent = 3
90% of reserved blocks are consumed
Trait Implementations§
Source§impl Clone for PreEolInfo
impl Clone for PreEolInfo
Source§fn clone(&self) -> PreEolInfo
fn clone(&self) -> PreEolInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PreEolInfo
Source§impl Debug for PreEolInfo
impl Debug for PreEolInfo
impl Eq for PreEolInfo
Source§impl From<PreEolInfo> for u16
impl From<PreEolInfo> for u16
Source§fn from(enum_value: PreEolInfo) -> Self
fn from(enum_value: PreEolInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PreEolInfo
impl PartialEq for PreEolInfo
impl StructuralPartialEq for PreEolInfo
Source§impl TryFrom<u16> for PreEolInfo
impl TryFrom<u16> for PreEolInfo
Source§type Error = TryFromPrimitiveError<PreEolInfo>
type Error = TryFromPrimitiveError<PreEolInfo>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PreEolInfo
impl TryFromPrimitive for PreEolInfo
const NAME: &'static str = "PreEolInfo"
type Primitive = u16
type Error = TryFromPrimitiveError<PreEolInfo>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PreEolInfo
impl RefUnwindSafe for PreEolInfo
impl Send for PreEolInfo
impl Sync for PreEolInfo
impl Unpin for PreEolInfo
impl UnsafeUnpin for PreEolInfo
impl UnwindSafe for PreEolInfo
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