pub struct ClientboundPlayLogin {
pub entity_id: i32,
pub is_hardcore: bool,
pub world_names: Vec<String>,
pub max_players: i32,
pub view_distance: i32,
pub simulation_distance: i32,
pub reduced_debug_info: bool,
pub enable_respawn_screen: bool,
pub do_limited_crafting: bool,
pub world_state: ClientboundPlayLoginSpawninfo,
pub enforces_secure_chat: bool,
}Fields§
§entity_id: i32§is_hardcore: bool§world_names: Vec<String>§max_players: i32§view_distance: i32§simulation_distance: i32§reduced_debug_info: bool§enable_respawn_screen: bool§do_limited_crafting: bool§world_state: ClientboundPlayLoginSpawninfo§enforces_secure_chat: boolImplementations§
Source§impl ClientboundPlayLogin
impl ClientboundPlayLogin
Sourcepub const PACKET_ID: i32 = 44i32
pub const PACKET_ID: i32 = 44i32
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 ClientboundPlayLogin
impl Clone for ClientboundPlayLogin
Source§fn clone(&self) -> ClientboundPlayLogin
fn clone(&self) -> ClientboundPlayLogin
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 ClientboundPlayLogin
impl Debug for ClientboundPlayLogin
Source§impl Default for ClientboundPlayLogin
impl Default for ClientboundPlayLogin
Source§fn default() -> ClientboundPlayLogin
fn default() -> ClientboundPlayLogin
Returns the “default value” for a type. Read more
Source§impl EncodedSize for ClientboundPlayLogin
impl EncodedSize for ClientboundPlayLogin
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlayLogin
impl PartialEq for ClientboundPlayLogin
impl StructuralPartialEq for ClientboundPlayLogin
Auto Trait Implementations§
impl Freeze for ClientboundPlayLogin
impl RefUnwindSafe for ClientboundPlayLogin
impl Send for ClientboundPlayLogin
impl Sync for ClientboundPlayLogin
impl Unpin for ClientboundPlayLogin
impl UnsafeUnpin for ClientboundPlayLogin
impl UnwindSafe for ClientboundPlayLogin
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