pub struct ServerboundPlayNameItem {
pub name: String,
}Fields§
§name: StringImplementations§
Source§impl ServerboundPlayNameItem
impl ServerboundPlayNameItem
Sourcepub const PACKET_ID: i32 = 46i32
pub const PACKET_ID: i32 = 46i32
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 ServerboundPlayNameItem
impl Clone for ServerboundPlayNameItem
Source§fn clone(&self) -> ServerboundPlayNameItem
fn clone(&self) -> ServerboundPlayNameItem
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 ServerboundPlayNameItem
impl Debug for ServerboundPlayNameItem
Source§impl Default for ServerboundPlayNameItem
impl Default for ServerboundPlayNameItem
Source§fn default() -> ServerboundPlayNameItem
fn default() -> ServerboundPlayNameItem
Returns the “default value” for a type. Read more
Source§impl Encode for ServerboundPlayNameItem
impl Encode for ServerboundPlayNameItem
Source§impl EncodedSize for ServerboundPlayNameItem
impl EncodedSize for ServerboundPlayNameItem
fn encoded_size(&self) -> usize
Source§impl PartialEq for ServerboundPlayNameItem
impl PartialEq for ServerboundPlayNameItem
impl StructuralPartialEq for ServerboundPlayNameItem
Auto Trait Implementations§
impl Freeze for ServerboundPlayNameItem
impl RefUnwindSafe for ServerboundPlayNameItem
impl Send for ServerboundPlayNameItem
impl Sync for ServerboundPlayNameItem
impl Unpin for ServerboundPlayNameItem
impl UnsafeUnpin for ServerboundPlayNameItem
impl UnwindSafe for ServerboundPlayNameItem
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