pub struct ServerboundPlayChatMessage {
pub message: String,
pub timestamp: i64,
pub salt: i64,
pub signature: Option<Vec<u8>>,
pub offset: i32,
pub acknowledged: Vec<u8>,
}Fields§
§message: String§timestamp: i64§salt: i64§signature: Option<Vec<u8>>§offset: i32§acknowledged: Vec<u8>Implementations§
Source§impl ServerboundPlayChatMessage
impl ServerboundPlayChatMessage
Sourcepub const PACKET_ID: i32 = 7i32
pub const PACKET_ID: i32 = 7i32
The packet ID used by the registry to dispatch this packet.
This value is declared via #[packet(id = N)] and corresponds to
the VarInt packet ID read/written by the framing layer. The struct’s
own Encode/Decode does NOT include this ID — it only encodes the
packet’s payload fields.
Trait Implementations§
Source§impl Clone for ServerboundPlayChatMessage
impl Clone for ServerboundPlayChatMessage
Source§fn clone(&self) -> ServerboundPlayChatMessage
fn clone(&self) -> ServerboundPlayChatMessage
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 Debug for ServerboundPlayChatMessage
impl Debug for ServerboundPlayChatMessage
Source§impl Default for ServerboundPlayChatMessage
impl Default for ServerboundPlayChatMessage
Source§fn default() -> ServerboundPlayChatMessage
fn default() -> ServerboundPlayChatMessage
Returns the “default value” for a type. Read more
Source§impl Encode for ServerboundPlayChatMessage
impl Encode for ServerboundPlayChatMessage
Source§impl EncodedSize for ServerboundPlayChatMessage
impl EncodedSize for ServerboundPlayChatMessage
fn encoded_size(&self) -> usize
impl StructuralPartialEq for ServerboundPlayChatMessage
Auto Trait Implementations§
impl Freeze for ServerboundPlayChatMessage
impl RefUnwindSafe for ServerboundPlayChatMessage
impl Send for ServerboundPlayChatMessage
impl Sync for ServerboundPlayChatMessage
impl Unpin for ServerboundPlayChatMessage
impl UnsafeUnpin for ServerboundPlayChatMessage
impl UnwindSafe for ServerboundPlayChatMessage
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