pub struct ChromeMojoEventInfo {
pub watcher_notify_interface_tag: Option<String>,
pub ipc_hash: Option<u32>,
pub mojo_interface_tag: Option<String>,
pub mojo_interface_method_iid: Option<u64>,
pub is_reply: Option<bool>,
pub payload_size: Option<u64>,
pub data_num_bytes: Option<u64>,
}
Expand description
Contains information to identify mojo handling events. The trace events in mojo are common for all mojo interfaces and this information is used to identify who is the caller or callee.
Fields§
§watcher_notify_interface_tag: Option<String>
Contains the interface name or the file name of the creator of a mojo handle watcher, recorded when an event if notified to the watcher. The code that runs within the track event belongs to the interface.
ipc_hash: Option<u32>
The hash of the IPC message that is being handled.
mojo_interface_tag: Option<String>
A static string representing the mojo interface name of the message that is being handled.
mojo_interface_method_iid: Option<u64>
Refers to an interned UnsymbolizedSourceLocation. The UnsymbolizedSourceLocation contains the interface method that’s being handled, represented as a native symbol. The native symbol can be symbolized after the trace is recorded. Not using a symbolized source location for official Chromium builds to reduce binary size - emitting file/function names as strings into the trace requires storing them in the binary, which causes a significant binary size bloat for Chromium.
is_reply: Option<bool>
Indicate whether this is a message or reply.
payload_size: Option<u64>
The payload size of the message being sent through mojo messages.
data_num_bytes: Option<u64>
Represents the size of the message. Includes all headers and user payload.
Implementations§
Source§impl ChromeMojoEventInfo
impl ChromeMojoEventInfo
Sourcepub fn watcher_notify_interface_tag(&self) -> &str
pub fn watcher_notify_interface_tag(&self) -> &str
Returns the value of watcher_notify_interface_tag
, or the default value if watcher_notify_interface_tag
is unset.
Sourcepub fn ipc_hash(&self) -> u32
pub fn ipc_hash(&self) -> u32
Returns the value of ipc_hash
, or the default value if ipc_hash
is unset.
Sourcepub fn mojo_interface_tag(&self) -> &str
pub fn mojo_interface_tag(&self) -> &str
Returns the value of mojo_interface_tag
, or the default value if mojo_interface_tag
is unset.
Sourcepub fn mojo_interface_method_iid(&self) -> u64
pub fn mojo_interface_method_iid(&self) -> u64
Returns the value of mojo_interface_method_iid
, or the default value if mojo_interface_method_iid
is unset.
Sourcepub fn is_reply(&self) -> bool
pub fn is_reply(&self) -> bool
Returns the value of is_reply
, or the default value if is_reply
is unset.
Sourcepub fn payload_size(&self) -> u64
pub fn payload_size(&self) -> u64
Returns the value of payload_size
, or the default value if payload_size
is unset.
Sourcepub fn data_num_bytes(&self) -> u64
pub fn data_num_bytes(&self) -> u64
Returns the value of data_num_bytes
, or the default value if data_num_bytes
is unset.
Trait Implementations§
Source§impl Clone for ChromeMojoEventInfo
impl Clone for ChromeMojoEventInfo
Source§fn clone(&self) -> ChromeMojoEventInfo
fn clone(&self) -> ChromeMojoEventInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChromeMojoEventInfo
impl Debug for ChromeMojoEventInfo
Source§impl Default for ChromeMojoEventInfo
impl Default for ChromeMojoEventInfo
Source§impl Message for ChromeMojoEventInfo
impl Message for ChromeMojoEventInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
self
.