#[repr(C)]pub enum EventSeverity {
INFO = 0,
WARNING = 1,
ERROR = 2,
CRITICAL = 3,
}
Expand description
Event severity
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
Source§impl Clone for EventSeverity
impl Clone for EventSeverity
Source§fn clone(&self) -> EventSeverity
fn clone(&self) -> EventSeverity
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 EventSeverity
impl Debug for EventSeverity
Source§impl<'de> Deserialize<'de> for EventSeverity
impl<'de> Deserialize<'de> for EventSeverity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EventSeverity
impl Display for EventSeverity
Source§impl FromStr for EventSeverity
impl FromStr for EventSeverity
Source§impl Ord for EventSeverity
impl Ord for EventSeverity
Source§fn cmp(&self, other: &EventSeverity) -> Ordering
fn cmp(&self, other: &EventSeverity) -> 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 EventSeverity
impl PartialEq for EventSeverity
Source§impl PartialOrd for EventSeverity
impl PartialOrd for EventSeverity
Source§impl Serialize for EventSeverity
impl Serialize for EventSeverity
impl Copy for EventSeverity
impl Eq for EventSeverity
impl StructuralPartialEq for EventSeverity
Auto Trait Implementations§
impl Freeze for EventSeverity
impl RefUnwindSafe for EventSeverity
impl Send for EventSeverity
impl Sync for EventSeverity
impl Unpin for EventSeverity
impl UnwindSafe for EventSeverity
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