pub enum Level {
Info,
Warn,
Error,
SelfError,
}
Expand description
Variants§
Info
Indicates an informational message when everything is working properly.
§Examples
- A job has completed successfully, e.g a backup
- A daily status update to confirm that everything is running correctly.
Warn
Used when something unexpected occurs that could be the source of an error, but requires the user to check whether it is actually an issue.
§Examples
- A job took longer than normal
- A job failed that fails fairly regularly, but will presumably sort itself out soon.
Error
Indicates a failure has occurred.
§Examples
- A program crashed / had a non-zero exit code
- A monitoring program detected that another program has not completed its job
- Possibly indicating the program is not running
- Or the program is malfunctioning
- A program restarted in attempt to recover itself, but is expected to recover safely
SelfError
Indicates a failure in the notifications own configuration / workings.
§Examples
- Sent by
MessageRouter
toRoot
levelMessageDestination
s when a message cannot be sent to one or more destinations (e.g. network failure, invalid tokens)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
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 Ord for Level
impl Ord for Level
Source§impl PartialOrd for Level
impl PartialOrd for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.