pub struct SeverityFilter(/* private fields */);Expand description
A filter for log Severity levels.
Implementations§
source§impl SeverityFilter
impl SeverityFilter
sourcepub const fn above_or_eq(s: Severity) -> Self
pub const fn above_or_eq(s: Severity) -> Self
sourcepub const fn below_or_eq(s: Severity) -> Self
pub const fn below_or_eq(s: Severity) -> Self
sourcepub const fn debug(self) -> Self
pub const fn debug(self) -> Self
Returns a filter that enables Severity::Debug messages.
sourcepub const fn info(self) -> Self
pub const fn info(self) -> Self
Returns a filter that enables Severity::Info messages.
sourcepub const fn warning(self) -> Self
pub const fn warning(self) -> Self
Returns a filter that enables Severity::Warning messages.
sourcepub const fn error(self) -> Self
pub const fn error(self) -> Self
Returns a filter that enables Severity::Error messages.
sourcepub const fn critical(self) -> Self
pub const fn critical(self) -> Self
Returns a filter that enables Severity::Critical messages.
Trait Implementations§
source§impl Clone for SeverityFilter
impl Clone for SeverityFilter
source§fn clone(&self) -> SeverityFilter
fn clone(&self) -> SeverityFilter
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 Default for SeverityFilter
impl Default for SeverityFilter
source§fn default() -> SeverityFilter
fn default() -> SeverityFilter
Returns the “default value” for a type. Read more
impl Copy for SeverityFilter
Auto Trait Implementations§
impl Freeze for SeverityFilter
impl RefUnwindSafe for SeverityFilter
impl Send for SeverityFilter
impl Sync for SeverityFilter
impl Unpin for SeverityFilter
impl UnwindSafe for SeverityFilter
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)