#[repr(i32)]pub enum TraceLevel {
None = 0,
Redacted = 1,
Complete = 2,
}
Expand description
The level of tracing that should be applied to an event.
Variants§
None = 0
Do not trace the input event.
Redacted = 1
Trace the event as a redacted event, where certain sensitive fields are omitted from the trace, including the coordinates of pointer events and the key/scan codes of key events.
Complete = 2
Trace the complete event.
Implementations§
Source§impl TraceLevel
impl TraceLevel
Source§impl TraceLevel
impl TraceLevel
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 TraceLevel
impl Clone for TraceLevel
Source§fn clone(&self) -> TraceLevel
fn clone(&self) -> TraceLevel
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 TraceLevel
impl Debug for TraceLevel
Source§impl Default for TraceLevel
impl Default for TraceLevel
Source§fn default() -> TraceLevel
fn default() -> TraceLevel
Returns the “default value” for a type. Read more
Source§impl From<TraceLevel> for i32
impl From<TraceLevel> for i32
Source§fn from(value: TraceLevel) -> i32
fn from(value: TraceLevel) -> i32
Converts to this type from the input type.
Source§impl Hash for TraceLevel
impl Hash for TraceLevel
Source§impl Ord for TraceLevel
impl Ord for TraceLevel
Source§fn cmp(&self, other: &TraceLevel) -> Ordering
fn cmp(&self, other: &TraceLevel) -> 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 TraceLevel
impl PartialEq for TraceLevel
Source§impl PartialOrd for TraceLevel
impl PartialOrd for TraceLevel
Source§impl TryFrom<i32> for TraceLevel
impl TryFrom<i32> for TraceLevel
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TraceLevel, DecodeError>
fn try_from(value: i32) -> Result<TraceLevel, DecodeError>
Performs the conversion.
impl Copy for TraceLevel
impl Eq for TraceLevel
impl StructuralPartialEq for TraceLevel
Auto Trait Implementations§
impl Freeze for TraceLevel
impl RefUnwindSafe for TraceLevel
impl Send for TraceLevel
impl Sync for TraceLevel
impl Unpin for TraceLevel
impl UnwindSafe for TraceLevel
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