#[non_exhaustive]#[repr(usize)]pub enum ChatterLevel {
Minimal = 0,
Normal = 1,
}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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChatterLevel
Source§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
impl Eq for ChatterLevel
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 (const: unstable) · 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 for ChatterLevel
impl PartialEq for ChatterLevel
Source§fn eq(&self, other: &ChatterLevel) -> bool
fn eq(&self, other: &ChatterLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ChatterLevel
impl PartialOrd for ChatterLevel
Auto Trait Implementations§
impl Freeze for ChatterLevel
impl RefUnwindSafe for ChatterLevel
impl Send for ChatterLevel
impl Sync for ChatterLevel
impl Unpin for ChatterLevel
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.