pub struct LoginSuccessPacket {
pub uuid: Uuid,
pub username: String,
pub properties: Vec<ProfileProperty>,
}Expand description
Clientbound login success (packet ID 0x02 in LOGIN state).
Fields§
§uuid: UuidThe player’s game profile.
username: StringThe player’s username.
properties: Vec<ProfileProperty>Profile properties.
Implementations§
Source§impl LoginSuccessPacket
impl LoginSuccessPacket
Sourcepub fn from_profile(profile: &GameProfile) -> Self
pub fn from_profile(profile: &GameProfile) -> Self
Create from a game profile.
Trait Implementations§
Source§impl Clone for LoginSuccessPacket
impl Clone for LoginSuccessPacket
Source§fn clone(&self) -> LoginSuccessPacket
fn clone(&self) -> LoginSuccessPacket
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 LoginSuccessPacket
impl Debug for LoginSuccessPacket
Auto Trait Implementations§
impl Freeze for LoginSuccessPacket
impl RefUnwindSafe for LoginSuccessPacket
impl Send for LoginSuccessPacket
impl Sync for LoginSuccessPacket
impl Unpin for LoginSuccessPacket
impl UnsafeUnpin for LoginSuccessPacket
impl UnwindSafe for LoginSuccessPacket
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