#[repr(i32)]pub enum TracingMode {
Default = 0,
EnableAll = 1,
}
Variants§
Default = 0
When using the DEFAULT tracing mode, only log groups and levels specified in the group_overrides are traced.
EnableAll = 1
When using the ENABLE_ALL tracing mode, all log groups and levels are traced, unless specified in the group_overrides.
Implementations§
Source§impl TracingMode
impl TracingMode
Source§impl TracingMode
impl TracingMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for TracingMode
impl Clone for TracingMode
Source§fn clone(&self) -> TracingMode
fn clone(&self) -> TracingMode
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 TracingMode
impl Debug for TracingMode
Source§impl Default for TracingMode
impl Default for TracingMode
Source§fn default() -> TracingMode
fn default() -> TracingMode
Returns the “default value” for a type. Read more
Source§impl From<TracingMode> for i32
impl From<TracingMode> for i32
Source§fn from(value: TracingMode) -> i32
fn from(value: TracingMode) -> i32
Converts to this type from the input type.
Source§impl Hash for TracingMode
impl Hash for TracingMode
Source§impl Ord for TracingMode
impl Ord for TracingMode
Source§fn cmp(&self, other: &TracingMode) -> Ordering
fn cmp(&self, other: &TracingMode) -> 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 for TracingMode
impl PartialEq for TracingMode
Source§impl PartialOrd for TracingMode
impl PartialOrd for TracingMode
Source§impl TryFrom<i32> for TracingMode
impl TryFrom<i32> for TracingMode
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TracingMode, DecodeError>
fn try_from(value: i32) -> Result<TracingMode, DecodeError>
Performs the conversion.
impl Copy for TracingMode
impl Eq for TracingMode
impl StructuralPartialEq for TracingMode
Auto Trait Implementations§
impl Freeze for TracingMode
impl RefUnwindSafe for TracingMode
impl Send for TracingMode
impl Sync for TracingMode
impl Unpin for TracingMode
impl UnwindSafe for TracingMode
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