pub struct ClientboundLogin {
pub player_id: MinecraftEntityId,
pub hardcore: bool,
pub levels: Vec<Identifier>,
pub max_players: i32,
pub chunk_radius: u32,
pub simulation_distance: u32,
pub reduced_debug_info: bool,
pub show_death_screen: bool,
pub do_limited_crafting: bool,
pub common: CommonPlayerSpawnInfo,
pub enforces_secure_chat: bool,
}Expand description
The first packet sent by the server to the client after login.
This packet contains information about the state of the player, the world, and the registry.
Fields§
§player_id: MinecraftEntityId§hardcore: bool§levels: Vec<Identifier>§max_players: i32§chunk_radius: u32§simulation_distance: u32§reduced_debug_info: bool§show_death_screen: bool§do_limited_crafting: bool§common: CommonPlayerSpawnInfo§enforces_secure_chat: boolImplementations§
Trait Implementations§
Source§impl AzaleaRead for ClientboundLogin
impl AzaleaRead for ClientboundLogin
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for ClientboundLogin
impl AzaleaWrite for ClientboundLogin
Source§impl Clone for ClientboundLogin
impl Clone for ClientboundLogin
Source§fn clone(&self) -> ClientboundLogin
fn clone(&self) -> ClientboundLogin
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientboundLogin
impl Debug for ClientboundLogin
Source§impl Packet<ClientboundGamePacket> for ClientboundLogin
impl Packet<ClientboundGamePacket> for ClientboundLogin
fn into_variant(self) -> ClientboundGamePacket
Source§impl PartialEq for ClientboundLogin
impl PartialEq for ClientboundLogin
impl StructuralPartialEq for ClientboundLogin
Auto Trait Implementations§
impl Freeze for ClientboundLogin
impl RefUnwindSafe for ClientboundLogin
impl Send for ClientboundLogin
impl Sync for ClientboundLogin
impl Unpin for ClientboundLogin
impl UnwindSafe for ClientboundLogin
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.