pub struct ChromeMetadataPacket {
pub background_tracing_metadata: Option<BackgroundTracingMetadata>,
pub chrome_version_code: Option<i32>,
pub enabled_categories: Option<String>,
pub field_trial_hashes: Vec<FinchHash>,
}
Expand description
Metadata for chrome traces.
Fields§
§background_tracing_metadata: Option<BackgroundTracingMetadata>
§chrome_version_code: Option<i32>
Version code of Chrome used by Android’s Play Store. This field is only set on Android.
enabled_categories: Option<String>
Comma separated list of enabled categories for tracing. The list of possible category strings are listed in code base/trace_event/builtin_categories.h.
field_trial_hashes: Vec<FinchHash>
List of Finch study/groups that apply to this trace.
Implementations§
Source§impl ChromeMetadataPacket
impl ChromeMetadataPacket
Sourcepub fn chrome_version_code(&self) -> i32
pub fn chrome_version_code(&self) -> i32
Returns the value of chrome_version_code
, or the default value if chrome_version_code
is unset.
Sourcepub fn enabled_categories(&self) -> &str
pub fn enabled_categories(&self) -> &str
Returns the value of enabled_categories
, or the default value if enabled_categories
is unset.
Trait Implementations§
Source§impl Clone for ChromeMetadataPacket
impl Clone for ChromeMetadataPacket
Source§fn clone(&self) -> ChromeMetadataPacket
fn clone(&self) -> ChromeMetadataPacket
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 ChromeMetadataPacket
impl Debug for ChromeMetadataPacket
Source§impl Default for ChromeMetadataPacket
impl Default for ChromeMetadataPacket
Source§impl Message for ChromeMetadataPacket
impl Message for ChromeMetadataPacket
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for ChromeMetadataPacket
impl PartialEq for ChromeMetadataPacket
impl StructuralPartialEq for ChromeMetadataPacket
Auto Trait Implementations§
impl Freeze for ChromeMetadataPacket
impl RefUnwindSafe for ChromeMetadataPacket
impl Send for ChromeMetadataPacket
impl Sync for ChromeMetadataPacket
impl Unpin for ChromeMetadataPacket
impl UnwindSafe for ChromeMetadataPacket
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