Struct fast_protocol::datatypes::packets::HandshakePacket
source · pub struct HandshakePacket {
pub protocol: VarInt,
pub address: String,
pub port: UnsignedShort,
pub next_state: Enum<HandshakeNextState, VarInt>,
}Expand description
Struct for the Handshake packet used to tell the server in which state he should switch for
the following packets
Fields§
§protocol: VarIntannotation of the protocol version that the client uses to let the server decide if he is capable of comunicating with the client or not
address: StringAddress used to connect to the server, can be used to check if the client connected how it should has
port: UnsignedShortPort that the client used to connect to the server
next_state: Enum<HandshakeNextState, VarInt>enum to tell the server in which state he should switch after this packet
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandshakePacket
impl RefUnwindSafe for HandshakePacket
impl Send for HandshakePacket
impl Sync for HandshakePacket
impl Unpin 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