pub struct PlayerChatS2c<'a> {Show 14 fields
pub global_index: VarInt,
pub sender: Uuid,
pub index: VarInt,
pub message_signature: Option<&'a [u8; 256]>,
pub message: Bounded<&'a str, 256>,
pub timestamp: u64,
pub salt: u64,
pub previous_messages: Vec<MessageSignature<'a>>,
pub unsigned_content: Option<Cow<'a, TextComponent>>,
pub filter_type: MessageFilterType,
pub filter_type_bits: Option<VariableBitSet>,
pub chat_type: ChatType<'a>,
pub network_name: Cow<'a, TextComponent>,
pub network_target_name: Option<Cow<'a, TextComponent>>,
}Fields§
§global_index: VarInt§sender: Uuid§index: VarInt§message_signature: Option<&'a [u8; 256]>§message: Bounded<&'a str, 256>§timestamp: u64§salt: u64§previous_messages: Vec<MessageSignature<'a>>§unsigned_content: Option<Cow<'a, TextComponent>>§filter_type: MessageFilterType§filter_type_bits: Option<VariableBitSet>§chat_type: ChatType<'a>§network_name: Cow<'a, TextComponent>§network_target_name: Option<Cow<'a, TextComponent>>Trait Implementations§
Source§impl<'a> Clone for PlayerChatS2c<'a>
impl<'a> Clone for PlayerChatS2c<'a>
Source§fn clone(&self) -> PlayerChatS2c<'a>
fn clone(&self) -> PlayerChatS2c<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PlayerChatS2c<'a>
impl<'a> Debug for PlayerChatS2c<'a>
Source§impl<'a> Decode<'a> for PlayerChatS2c<'a>
impl<'a> Decode<'a> for PlayerChatS2c<'a>
Source§impl Encode for PlayerChatS2c<'_>
impl Encode for PlayerChatS2c<'_>
Source§impl<'a> Packet for PlayerChatS2c<'a>
impl<'a> Packet for PlayerChatS2c<'a>
Source§const SIDE: PacketSide = ::chunkedge_protocol::PacketSide::Clientbound
const SIDE: PacketSide = ::chunkedge_protocol::PacketSide::Clientbound
The side this packet is intended for.
Source§const STATE: PacketState = ::chunkedge_protocol::PacketState::Play
const STATE: PacketState = ::chunkedge_protocol::PacketState::Play
The state in which this packet is used.
Source§impl<'a> PartialEq for PlayerChatS2c<'a>
impl<'a> PartialEq for PlayerChatS2c<'a>
impl<'a> StructuralPartialEq for PlayerChatS2c<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlayerChatS2c<'a>
impl<'a> RefUnwindSafe for PlayerChatS2c<'a>
impl<'a> Send for PlayerChatS2c<'a>
impl<'a> Sync for PlayerChatS2c<'a>
impl<'a> Unpin for PlayerChatS2c<'a>
impl<'a> UnwindSafe for PlayerChatS2c<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.