#[non_exhaustive]#[repr(u8)]pub enum AlertLevel {
Warning = 1,
Fatal = 2,
}
Expand description
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.
Trait Implementations§
Source§impl Clone for AlertLevel
impl Clone for AlertLevel
Source§fn clone(&self) -> AlertLevel
fn clone(&self) -> AlertLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AlertLevel
impl Debug for AlertLevel
Source§impl From<AlertLevel> for u8
impl From<AlertLevel> for u8
Source§fn from(alert_level: AlertLevel) -> Self
fn from(alert_level: AlertLevel) -> Self
Converts to this type from the input type.
Source§impl Ord for AlertLevel
impl Ord for AlertLevel
Source§fn cmp(&self, other: &AlertLevel) -> Ordering
fn cmp(&self, other: &AlertLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlertLevel
impl PartialEq for AlertLevel
Source§impl PartialOrd for AlertLevel
impl PartialOrd for AlertLevel
Source§impl TryFrom<u8> for AlertLevel
impl TryFrom<u8> for AlertLevel
impl Copy for AlertLevel
impl Eq for AlertLevel
impl StructuralPartialEq for AlertLevel
Auto Trait Implementations§
impl Freeze for AlertLevel
impl RefUnwindSafe for AlertLevel
impl Send for AlertLevel
impl Sync for AlertLevel
impl Unpin for AlertLevel
impl UnwindSafe for AlertLevel
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