pub struct LoginDisconnectPacket {
pub reason: String,
}Expand description
Clientbound disconnect during login (packet ID 0x00 in LOGIN state).
Fields§
§reason: StringJSON text component with the disconnect reason.
Trait Implementations§
Source§impl Clone for LoginDisconnectPacket
impl Clone for LoginDisconnectPacket
Source§fn clone(&self) -> LoginDisconnectPacket
fn clone(&self) -> LoginDisconnectPacket
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 LoginDisconnectPacket
impl Debug for LoginDisconnectPacket
Auto Trait Implementations§
impl Freeze for LoginDisconnectPacket
impl RefUnwindSafe for LoginDisconnectPacket
impl Send for LoginDisconnectPacket
impl Sync for LoginDisconnectPacket
impl Unpin for LoginDisconnectPacket
impl UnsafeUnpin for LoginDisconnectPacket
impl UnwindSafe for LoginDisconnectPacket
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