pub struct IncompatibleProtocolVersion {
pub protocol: u8,
pub magic: Magic,
pub server_id: u64,
}
Expand description
This packet is sent by the server to indicate that the server does not support the protocol version of the client.
Fields§
§protocol: u8
§magic: Magic
§server_id: u64
Trait Implementations§
Source§impl Clone for IncompatibleProtocolVersion
impl Clone for IncompatibleProtocolVersion
Source§fn clone(&self) -> IncompatibleProtocolVersion
fn clone(&self) -> IncompatibleProtocolVersion
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 IncompatibleProtocolVersion
impl Debug for IncompatibleProtocolVersion
Source§impl From<IncompatibleProtocolVersion> for OfflinePacket
impl From<IncompatibleProtocolVersion> for OfflinePacket
Source§fn from(packet: IncompatibleProtocolVersion) -> Self
fn from(packet: IncompatibleProtocolVersion) -> Self
Converts to this type from the input type.
Source§impl From<IncompatibleProtocolVersion> for RakPacket
impl From<IncompatibleProtocolVersion> for RakPacket
Source§fn from(packet: IncompatibleProtocolVersion) -> Self
fn from(packet: IncompatibleProtocolVersion) -> Self
Converts to this type from the input type.
Source§impl From<OfflinePacket> for IncompatibleProtocolVersion
impl From<OfflinePacket> for IncompatibleProtocolVersion
Source§fn from(packet: OfflinePacket) -> Self
fn from(packet: OfflinePacket) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for IncompatibleProtocolVersion
impl From<RakPacket> for IncompatibleProtocolVersion
Source§impl Reader<IncompatibleProtocolVersion> for IncompatibleProtocolVersion
impl Reader<IncompatibleProtocolVersion> for IncompatibleProtocolVersion
Source§fn read(
_binary_readerr: &mut ByteReader,
) -> Result<IncompatibleProtocolVersion, Error>
fn read( _binary_readerr: &mut ByteReader, ) -> Result<IncompatibleProtocolVersion, Error>
Source§impl Writer for IncompatibleProtocolVersion
impl Writer for IncompatibleProtocolVersion
Source§fn write_to_bytes(&self) -> Result<ByteWriter, Error>
fn write_to_bytes(&self) -> Result<ByteWriter, Error>
This is a utility function to write
Self
to a ByteWriter
without
needing to create a ByteWriter
first.Auto Trait Implementations§
impl Freeze for IncompatibleProtocolVersion
impl RefUnwindSafe for IncompatibleProtocolVersion
impl Send for IncompatibleProtocolVersion
impl Sync for IncompatibleProtocolVersion
impl Unpin for IncompatibleProtocolVersion
impl UnwindSafe for IncompatibleProtocolVersion
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