pub struct WireSeverity { /* private fields */ }
Expand description
The wire type corresponding to Severity
.
Implementations§
Source§impl WireSeverity
impl WireSeverity
pub const TRACE: WireSeverity
pub const DEBUG: WireSeverity
pub const INFO: WireSeverity
pub const WARN: WireSeverity
pub const ERROR: WireSeverity
pub const FATAL: WireSeverity
Trait Implementations§
Source§impl Clone for WireSeverity
impl Clone for WireSeverity
Source§fn clone(&self) -> WireSeverity
fn clone(&self) -> WireSeverity
Returns a copy 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 WireSeverity
impl Debug for WireSeverity
Source§impl<___D> Decode<___D> for WireSeveritywhere
___D: ?Sized,
impl<___D> Decode<___D> for WireSeveritywhere
___D: ?Sized,
Source§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 PartialEq for WireSeverity
impl PartialEq for WireSeverity
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 moreSource§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 moreSource§impl ZeroPadding for WireSeverity
impl ZeroPadding for WireSeverity
Source§fn zero_padding(_: &mut MaybeUninit<Self>)
fn zero_padding(_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireSeverity
impl Eq for WireSeverity
impl StructuralPartialEq for WireSeverity
Auto Trait Implementations§
impl Freeze for WireSeverity
impl RefUnwindSafe for WireSeverity
impl Send for WireSeverity
impl Sync for WireSeverity
impl Unpin for WireSeverity
impl UnwindSafe for WireSeverity
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