pub struct ChromeThreadDescriptor {
pub thread_type: Option<i32>,
pub legacy_sort_index: Option<i32>,
pub is_sandboxed_tid: Option<bool>,
}
Expand description
Describes a Chrome thread’s attributes. Emitted as part of a TrackDescriptor, usually by the thread’s trace writer. Must be paired with a ThreadDescriptor in the same TrackDescriptor.
Next id: 3.
Fields§
§thread_type: Option<i32>
This is a chrome_enums::ThreadType from //protos/third_party/chromium/chrome_enums.proto. The enum definition can’t be imported here because of a dependency loop.
legacy_sort_index: Option<i32>
To support old UI. New UI should determine default sorting by thread_type.
is_sandboxed_tid: Option<bool>
Indicates whether the thread’s tid specified in the thread descriptor is namespaced by Chromium’s sandbox. Only set on Linux, and from Chrome M140.
Implementations§
Source§impl ChromeThreadDescriptor
impl ChromeThreadDescriptor
Sourcepub fn thread_type(&self) -> i32
pub fn thread_type(&self) -> i32
Returns the value of thread_type
, or the default value if thread_type
is unset.
Sourcepub fn legacy_sort_index(&self) -> i32
pub fn legacy_sort_index(&self) -> i32
Returns the value of legacy_sort_index
, or the default value if legacy_sort_index
is unset.
Sourcepub fn is_sandboxed_tid(&self) -> bool
pub fn is_sandboxed_tid(&self) -> bool
Returns the value of is_sandboxed_tid
, or the default value if is_sandboxed_tid
is unset.
Trait Implementations§
Source§impl Clone for ChromeThreadDescriptor
impl Clone for ChromeThreadDescriptor
Source§fn clone(&self) -> ChromeThreadDescriptor
fn clone(&self) -> ChromeThreadDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChromeThreadDescriptor
impl Debug for ChromeThreadDescriptor
Source§impl Default for ChromeThreadDescriptor
impl Default for ChromeThreadDescriptor
Source§impl Message for ChromeThreadDescriptor
impl Message for ChromeThreadDescriptor
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.