#[repr(usize)]#[non_exhaustive]pub enum ChatterLevel {
Minimal,
Normal,
}
Expand description
A setting regarding which messages to display.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl ChatterLevel
impl ChatterLevel
sourcepub fn suppress_message(&self, kind: MessageKind) -> bool
pub fn suppress_message(&self, kind: MessageKind) -> bool
Determine whether messages of the specified kind should be suppressed at this chatter level.
Trait Implementations§
source§impl Clone for ChatterLevel
impl Clone for ChatterLevel
source§fn clone(&self) -> ChatterLevel
fn clone(&self) -> ChatterLevel
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 ChatterLevel
impl Debug for ChatterLevel
source§impl Default for ChatterLevel
impl Default for ChatterLevel
source§fn default() -> ChatterLevel
fn default() -> ChatterLevel
Returns the “default value” for a type. Read more
source§impl FromStr for ChatterLevel
impl FromStr for ChatterLevel
source§impl Ord for ChatterLevel
impl Ord for ChatterLevel
source§fn cmp(&self, other: &ChatterLevel) -> Ordering
fn cmp(&self, other: &ChatterLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ChatterLevel> for ChatterLevel
impl PartialEq<ChatterLevel> for ChatterLevel
source§fn eq(&self, other: &ChatterLevel) -> bool
fn eq(&self, other: &ChatterLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChatterLevel> for ChatterLevel
impl PartialOrd<ChatterLevel> for ChatterLevel
source§fn partial_cmp(&self, other: &ChatterLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatterLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ChatterLevel
impl Eq for ChatterLevel
impl StructuralEq for ChatterLevel
Auto Trait Implementations§
impl RefUnwindSafe for ChatterLevel
impl Send for ChatterLevel
impl Sync for ChatterLevel
impl Unpin for ChatterLevel
impl UnwindSafe for ChatterLevel
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