pub struct SessionInfoReply {
pub magic: Magic,
pub server_id: u64,
pub client_address: SocketAddr,
pub mtu_size: u16,
pub security: bool,
}
Expand description
This packet is sent in response to a SessionInfoRequest
packet, and confirms
all the information sent by the peer in the SessionInfoRequest
packet. This packet
also specifies the external address of the peer, as well as whether or not
encryption at the RakNet level is enabled on the server.
This packet is the equivalent of the Open Connect Reply 2
within the original RakNet implementation.
Fields§
§magic: Magic
§server_id: u64
§client_address: SocketAddr
§mtu_size: u16
§security: bool
Trait Implementations§
Source§impl Clone for SessionInfoReply
impl Clone for SessionInfoReply
Source§fn clone(&self) -> SessionInfoReply
fn clone(&self) -> SessionInfoReply
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 SessionInfoReply
impl Debug for SessionInfoReply
Source§impl From<OfflinePacket> for SessionInfoReply
impl From<OfflinePacket> for SessionInfoReply
Source§fn from(packet: OfflinePacket) -> Self
fn from(packet: OfflinePacket) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for SessionInfoReply
impl From<RakPacket> for SessionInfoReply
Source§impl From<SessionInfoReply> for OfflinePacket
impl From<SessionInfoReply> for OfflinePacket
Source§fn from(packet: SessionInfoReply) -> Self
fn from(packet: SessionInfoReply) -> Self
Converts to this type from the input type.
Source§impl From<SessionInfoReply> for RakPacket
impl From<SessionInfoReply> for RakPacket
Source§fn from(packet: SessionInfoReply) -> Self
fn from(packet: SessionInfoReply) -> Self
Converts to this type from the input type.
Source§impl Reader<SessionInfoReply> for SessionInfoReply
impl Reader<SessionInfoReply> for SessionInfoReply
Source§fn read(_binary_readerr: &mut ByteReader) -> Result<SessionInfoReply, Error>
fn read(_binary_readerr: &mut ByteReader) -> Result<SessionInfoReply, Error>
Source§impl Writer for SessionInfoReply
impl Writer for SessionInfoReply
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 SessionInfoReply
impl RefUnwindSafe for SessionInfoReply
impl Send for SessionInfoReply
impl Sync for SessionInfoReply
impl Unpin for SessionInfoReply
impl UnwindSafe for SessionInfoReply
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