pub struct HandshakePacket {
pub protocol_version: i32,
pub server_address: String,
pub server_port: u16,
pub next_state: HandshakeIntent,
}Expand description
Serverbound handshake packet (packet ID 0x00 in HANDSHAKE state).
Fields§
§protocol_version: i32The protocol version the client is using.
server_address: StringThe server address the client connected to.
server_port: u16The server port the client connected to.
next_state: HandshakeIntentThe intended next state.
Trait Implementations§
Source§impl Clone for HandshakePacket
impl Clone for HandshakePacket
Source§fn clone(&self) -> HandshakePacket
fn clone(&self) -> HandshakePacket
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 HandshakePacket
impl Debug for HandshakePacket
Auto Trait Implementations§
impl Freeze for HandshakePacket
impl RefUnwindSafe for HandshakePacket
impl Send for HandshakePacket
impl Sync for HandshakePacket
impl Unpin for HandshakePacket
impl UnsafeUnpin for HandshakePacket
impl UnwindSafe for HandshakePacket
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