pub struct Message {
domain: i32,
pub command: i32,
pub command_param1: i32,
command_param2: i32,
}Expand description
Stores the content of the message and provides functionality for testing.
Fields§
§domain: i32§command: i32§command_param1: i32§command_param2: i32Implementations§
Source§impl Message
impl Message
Sourcepub fn new() -> Message
pub fn new() -> Message
Creates a new Message instance with all its fields initialized to zero.
This constructor provides a default, empty message state, which can then be populated with specific domain, command, and parameter values.
§Returns
A new Message struct with domain, command, command_param1,
and command_param2 all set to 0.
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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