pub struct OwnedMessage<Id> {
pub sender_id: Id,
pub opcode: u16,
pub args: SmallVec<[OwnedArgument<Id>; 4]>,
}Expand description
Represents a message that has been sent from some object.
Fields§
§sender_id: IdThe id of the object that sent the message.
opcode: u16The opcode of the message.
args: SmallVec<[OwnedArgument<Id>; 4]>The arguments of the message.
Trait Implementations§
Source§impl<Id> Debug for OwnedMessage<Id>where
Id: Debug,
impl<Id> Debug for OwnedMessage<Id>where
Id: Debug,
impl<Id> Eq for OwnedMessage<Id>where
Id: Eq,
Source§impl<Id> PartialEq for OwnedMessage<Id>where
Id: PartialEq,
impl<Id> PartialEq for OwnedMessage<Id>where
Id: PartialEq,
Source§fn eq(&self, other: &OwnedMessage<Id>) -> bool
fn eq(&self, other: &OwnedMessage<Id>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Id> StructuralPartialEq for OwnedMessage<Id>where
Id: PartialEq,
Auto Trait Implementations§
impl<Id> Freeze for OwnedMessage<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for OwnedMessage<Id>where
Id: RefUnwindSafe,
impl<Id> Send for OwnedMessage<Id>where
Id: Send,
impl<Id> Sync for OwnedMessage<Id>where
Id: Sync,
impl<Id> Unpin for OwnedMessage<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for OwnedMessage<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for OwnedMessage<Id>where
Id: UnwindSafe + RefUnwindSafe,
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