#[repr(i32)]pub enum TraceMode {
TraceAll = 0,
UseRules = 1,
}
Expand description
Trace modes are tracing presets that are included in the system.
Variants§
TraceAll = 0
Preset mode for maximal tracing. WARNING: This will bypass all privacy measures on debuggable builds, and will record all input events processed by the system, regardless of the context in which they were processed. It should only be used for tracing on a local device or for tests. It should NEVER be used for field tracing.
UseRules = 1
Use the tracing rules defined in this config to specify what events to trace.
Implementations§
Source§impl TraceMode
impl TraceMode
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 Ord for TraceMode
impl Ord for TraceMode
Source§impl PartialOrd for TraceMode
impl PartialOrd for TraceMode
impl Copy for TraceMode
impl Eq for TraceMode
impl StructuralPartialEq for TraceMode
Auto Trait Implementations§
impl Freeze for TraceMode
impl RefUnwindSafe for TraceMode
impl Send for TraceMode
impl Sync for TraceMode
impl Unpin for TraceMode
impl UnwindSafe for TraceMode
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