#[non_exhaustive]#[repr(u8)]pub enum EventCause {
CauseOther = 0,
CauseError = 1,
CauseTool = 2,
CauseScript = 3,
CauseUser = 4,
}Expand description
\brief Type of cause.
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.
CauseOther = 0
< Unknown source.
CauseError = 1
< An error generated this event.
CauseTool = 2
< The tool generated this event.
CauseScript = 3
< A script generated this event.
CauseUser = 4
< A user generated this event.
Trait Implementations§
Source§impl Clone for EventCause
impl Clone for EventCause
Source§fn clone(&self) -> EventCause
fn clone(&self) -> EventCause
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 EventCause
impl Debug for EventCause
Source§impl Hash for EventCause
impl Hash for EventCause
Source§impl Ord for EventCause
impl Ord for EventCause
Source§fn cmp(&self, other: &EventCause) -> Ordering
fn cmp(&self, other: &EventCause) -> 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 EventCause
impl PartialEq for EventCause
Source§impl PartialOrd for EventCause
impl PartialOrd for EventCause
impl Copy for EventCause
impl Eq for EventCause
impl StructuralPartialEq for EventCause
Auto Trait Implementations§
impl Freeze for EventCause
impl RefUnwindSafe for EventCause
impl Send for EventCause
impl Sync for EventCause
impl Unpin for EventCause
impl UnsafeUnpin for EventCause
impl UnwindSafe for EventCause
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