#[non_exhaustive]pub enum EventPriority {
Debug,
Info,
Critical,
}Expand description
An event’s priority (§7.14).
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.
Debug
Lowest: development and diagnostics.
Info
The ordinary case.
Critical
Highest: an event whose loss matters.
Trait Implementations§
Source§impl Clone for EventPriority
impl Clone for EventPriority
impl Copy for EventPriority
Source§impl Debug for EventPriority
impl Debug for EventPriority
Source§impl Default for EventPriority
impl Default for EventPriority
impl Eq for EventPriority
Source§impl Hash for EventPriority
impl Hash for EventPriority
Source§impl Ord for EventPriority
impl Ord for EventPriority
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EventPriority
impl PartialEq for EventPriority
Source§impl PartialOrd for EventPriority
impl PartialOrd for EventPriority
impl StructuralPartialEq for EventPriority
Auto Trait Implementations§
impl Forget for EventPriority
impl Freeze for EventPriority
impl Move for EventPriority
impl RefUnwindSafe for EventPriority
impl Send for EventPriority
impl Sync for EventPriority
impl Unpin for EventPriority
impl UnsafeUnpin for EventPriority
impl UnwindSafe for EventPriority
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