pub struct ChatWhisper {
pub from: Player,
pub to: Player,
pub text: BString,
}Expand description
A player has whispered.
This only occurs if the current player is either the whisperer or the one who originally sent the whisper message.
Fields§
§from: Player§to: Player§text: BStringTrait Implementations§
Source§impl Clone for ChatWhisper
impl Clone for ChatWhisper
Source§fn clone(&self) -> ChatWhisper
fn clone(&self) -> ChatWhisper
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 moreSource§impl Debug for ChatWhisper
impl Debug for ChatWhisper
Source§impl<'de> DeserializeV5<'de> for ChatWhisper
impl<'de> DeserializeV5<'de> for ChatWhisper
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<ChatWhisper> for ServerPacket
impl From<ChatWhisper> for ServerPacket
Source§fn from(v: ChatWhisper) -> Self
fn from(v: ChatWhisper) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for ChatWhisper
impl SerializeV5 for ChatWhisper
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for ChatWhisper
impl RefUnwindSafe for ChatWhisper
impl Send for ChatWhisper
impl Sync for ChatWhisper
impl Unpin for ChatWhisper
impl UnsafeUnpin for ChatWhisper
impl UnwindSafe for ChatWhisper
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