pub enum Message<'a> {
Squad(&'a SquadMessage),
Npc(&'a NpcMessage),
}
Expand description
A chat message.
Variants§
Squad(&'a SquadMessage)
Npc(&'a NpcMessage)
Implementations§
Source§impl Message<'_>
impl Message<'_>
Sourcepub unsafe fn new(message_type: MessageType, message: RawMessage) -> Self
pub unsafe fn new(message_type: MessageType, message: RawMessage) -> Self
Creates a new message from [RawMessageType
] and RawMessage
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> !Send for Message<'a>
impl<'a> !Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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