#[repr(u8)]pub enum Severity {
Trace = 16,
Debug = 32,
Info = 48,
Warn = 64,
Error = 80,
Fatal = 96,
UnknownOrdinal_(u8),
}
Expand description
The severity of a given record.
Variants§
Trait Implementations§
Source§impl Encodable for Severity
impl Encodable for Severity
Source§type Encoded = WireSeverity
type Encoded = WireSeverity
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl From<Severity> for WireSeverity
impl From<Severity> for WireSeverity
Source§impl From<WireSeverity> for Severity
impl From<WireSeverity> for Severity
Source§fn from(wire: WireSeverity) -> Self
fn from(wire: WireSeverity) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireSeverity> for Severity
impl TakeFrom<WireSeverity> for Severity
Source§fn take_from(from: &WireSeverity) -> Self
fn take_from(from: &WireSeverity) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
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