pub struct ChromeLegacyIpc {
pub message_class: Option<i32>,
pub message_line: Option<u32>,
}
Expand description
Details about a legacy Chrome IPC message that is either sent by the event. TODO(eseckler): Also use this message on the receiving side?
Fields§
§message_class: Option<i32>
Corresponds to the message class type defined in Chrome’s IPCMessageStart enum, e.g. FrameMsgStart,
message_line: Option<u32>
Line number of the message definition. See Chrome’s IPC_MESSAGE_ID and IPC_MESSAGE_START macros.
Implementations§
Source§impl ChromeLegacyIpc
impl ChromeLegacyIpc
Sourcepub fn message_class(&self) -> MessageClass
pub fn message_class(&self) -> MessageClass
Returns the enum value of message_class
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_message_class(&mut self, value: MessageClass)
pub fn set_message_class(&mut self, value: MessageClass)
Sets message_class
to the provided enum value.
Sourcepub fn message_line(&self) -> u32
pub fn message_line(&self) -> u32
Returns the value of message_line
, or the default value if message_line
is unset.
Trait Implementations§
Source§impl Clone for ChromeLegacyIpc
impl Clone for ChromeLegacyIpc
Source§fn clone(&self) -> ChromeLegacyIpc
fn clone(&self) -> ChromeLegacyIpc
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 ChromeLegacyIpc
impl Debug for ChromeLegacyIpc
Source§impl Default for ChromeLegacyIpc
impl Default for ChromeLegacyIpc
Source§impl Message for ChromeLegacyIpc
impl Message for ChromeLegacyIpc
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 ChromeLegacyIpc
impl PartialEq for ChromeLegacyIpc
impl StructuralPartialEq for ChromeLegacyIpc
Auto Trait Implementations§
impl Freeze for ChromeLegacyIpc
impl RefUnwindSafe for ChromeLegacyIpc
impl Send for ChromeLegacyIpc
impl Sync for ChromeLegacyIpc
impl Unpin for ChromeLegacyIpc
impl UnwindSafe for ChromeLegacyIpc
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