pub struct OpenConnectReply {
pub magic: Magic,
pub server_id: u64,
pub security: bool,
pub mtu_size: u16,
}
Expand description
This packet is sent in response to a OpenConnectRequest
packet, and confirms
the information sent by the peer in the OpenConnectRequest
packet.
This packet is the equivalent of the Open Connect Reply 1
within the original RakNet implementation.
If the server chooses to deny the connection, it should send a IncompatibleProtocolVersion
or ignore the packet.
Fields§
§magic: Magic
§server_id: u64
§security: bool
§mtu_size: u16
Trait Implementations§
Source§impl Clone for OpenConnectReply
impl Clone for OpenConnectReply
Source§fn clone(&self) -> OpenConnectReply
fn clone(&self) -> OpenConnectReply
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 OpenConnectReply
impl Debug for OpenConnectReply
Source§impl From<OfflinePacket> for OpenConnectReply
impl From<OfflinePacket> for OpenConnectReply
Source§fn from(packet: OfflinePacket) -> Self
fn from(packet: OfflinePacket) -> Self
Converts to this type from the input type.
Source§impl From<OpenConnectReply> for OfflinePacket
impl From<OpenConnectReply> for OfflinePacket
Source§fn from(packet: OpenConnectReply) -> Self
fn from(packet: OpenConnectReply) -> Self
Converts to this type from the input type.
Source§impl From<OpenConnectReply> for RakPacket
impl From<OpenConnectReply> for RakPacket
Source§fn from(packet: OpenConnectReply) -> Self
fn from(packet: OpenConnectReply) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for OpenConnectReply
impl From<RakPacket> for OpenConnectReply
Source§impl Reader<OpenConnectReply> for OpenConnectReply
impl Reader<OpenConnectReply> for OpenConnectReply
Source§fn read(_binary_readerr: &mut ByteReader) -> Result<OpenConnectReply, Error>
fn read(_binary_readerr: &mut ByteReader) -> Result<OpenConnectReply, Error>
Source§impl Writer for OpenConnectReply
impl Writer for OpenConnectReply
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 OpenConnectReply
impl RefUnwindSafe for OpenConnectReply
impl Send for OpenConnectReply
impl Sync for OpenConnectReply
impl Unpin for OpenConnectReply
impl UnwindSafe for OpenConnectReply
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