#[repr(i32)]pub enum SemanticType {
Unspecified = 0,
Atrace = 1,
Job = 2,
Wakelock = 3,
}Expand description
Semantic types for string fields. This tells the filter what kind of data the field contains, so it can apply the right filtering rules. See /rfcs/0011-subset-string-filter-rules.md for design details. Introduced in: Perfetto v54.
Variants§
Implementations§
Source§impl SemanticType
impl SemanticType
Source§impl SemanticType
impl SemanticType
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.
Trait Implementations§
Source§impl Clone for SemanticType
impl Clone for SemanticType
Source§fn clone(&self) -> SemanticType
fn clone(&self) -> SemanticType
Returns a duplicate 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 SemanticType
impl Debug for SemanticType
Source§impl Default for SemanticType
impl Default for SemanticType
Source§fn default() -> SemanticType
fn default() -> SemanticType
Returns the “default value” for a type. Read more
Source§impl From<SemanticType> for i32
impl From<SemanticType> for i32
Source§fn from(value: SemanticType) -> i32
fn from(value: SemanticType) -> i32
Converts to this type from the input type.
Source§impl Hash for SemanticType
impl Hash for SemanticType
Source§impl Ord for SemanticType
impl Ord for SemanticType
Source§fn cmp(&self, other: &SemanticType) -> Ordering
fn cmp(&self, other: &SemanticType) -> 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 SemanticType
impl PartialEq for SemanticType
Source§impl PartialOrd for SemanticType
impl PartialOrd for SemanticType
impl Copy for SemanticType
impl Eq for SemanticType
impl StructuralPartialEq for SemanticType
Auto Trait Implementations§
impl Freeze for SemanticType
impl RefUnwindSafe for SemanticType
impl Send for SemanticType
impl Sync for SemanticType
impl Unpin for SemanticType
impl UnwindSafe for SemanticType
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