pub struct MessageEvent {
pub packet_type: PacketType,
pub message_id: MessageId,
pub bytes: [u8; 256],
pub len: usize,
}Expand description
A complete message delivered by the engine.
Fields§
§packet_type: PacketTypePacket type that carried the message.
message_id: MessageIdMessage identifier scoped to this engine.
bytes: [u8; 256]Fixed storage containing complete message bytes.
len: usizeNumber of valid message bytes in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for MessageEvent
impl Clone for MessageEvent
Source§fn clone(&self) -> MessageEvent
fn clone(&self) -> MessageEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageEvent
Source§impl Debug for MessageEvent
impl Debug for MessageEvent
impl Eq for MessageEvent
Source§impl PartialEq for MessageEvent
impl PartialEq for MessageEvent
Source§fn eq(&self, other: &MessageEvent) -> bool
fn eq(&self, other: &MessageEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageEvent
Auto Trait Implementations§
impl Freeze for MessageEvent
impl RefUnwindSafe for MessageEvent
impl Send for MessageEvent
impl Sync for MessageEvent
impl Unpin for MessageEvent
impl UnsafeUnpin for MessageEvent
impl UnwindSafe for MessageEvent
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