Enum w5500_tls::AlertLevel
source · #[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 copy 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 Format for AlertLevel
impl Format 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§fn eq(&self, other: &AlertLevel) -> bool
fn eq(&self, other: &AlertLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AlertLevel
impl PartialOrd for AlertLevel
source§fn partial_cmp(&self, other: &AlertLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &AlertLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for AlertLevel
impl TryFrom<u8> for AlertLevel
impl Copy for AlertLevel
impl Eq for AlertLevel
impl StructuralEq for AlertLevel
impl StructuralPartialEq for AlertLevel
Auto Trait Implementations§
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