pub enum StaticOrDynamicName {
Name(String),
StaticName(String),
}
Expand description
Name of the track. Optional - if unspecified, it may be derived from the process/thread name (process/thread tracks), the first event’s name (async tracks), or counter name (counter tracks).
Variants§
Name(String)
StaticName(String)
This field is only set by the SDK when perfetto::StaticString is provided.
Implementations§
Source§impl StaticOrDynamicName
impl StaticOrDynamicName
Sourcepub fn merge<B>(
field: &mut Option<StaticOrDynamicName>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<StaticOrDynamicName>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for StaticOrDynamicName
impl Clone for StaticOrDynamicName
Source§fn clone(&self) -> StaticOrDynamicName
fn clone(&self) -> StaticOrDynamicName
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 StaticOrDynamicName
impl Debug for StaticOrDynamicName
Source§impl PartialEq for StaticOrDynamicName
impl PartialEq for StaticOrDynamicName
impl StructuralPartialEq for StaticOrDynamicName
Auto Trait Implementations§
impl Freeze for StaticOrDynamicName
impl RefUnwindSafe for StaticOrDynamicName
impl Send for StaticOrDynamicName
impl Sync for StaticOrDynamicName
impl Unpin for StaticOrDynamicName
impl UnwindSafe for StaticOrDynamicName
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