Enum bflog::Severity [−][src]
pub enum Severity { Debug, Info, Warn, Error, }
Variants
Debug
Info
Warn
Error
Methods
impl Severity
[src]
impl Severity
pub fn from_str(
string: impl AsRef<str>
) -> Option<Severity>
[src]
pub fn from_str(
string: impl AsRef<str>
) -> Option<Severity>
pub fn to_level(&self) -> i32
[src]
pub fn to_level(&self) -> i32
pub fn to_str(&self) -> &'static str
[src]
pub fn to_str(&self) -> &'static str
pub fn to_aligned_str(&self) -> &'static str
[src]
pub fn to_aligned_str(&self) -> &'static str
pub fn to_icon(&self) -> &'static str
[src]
pub fn to_icon(&self) -> &'static str
Trait Implementations
impl Clone for Severity
[src]
impl Clone for Severity
fn clone(&self) -> Severity
[src]
fn clone(&self) -> Severity
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Severity
[src]
impl Default for Severity