pub struct ConnectionAccept {
pub client_address: SocketAddr,
pub system_index: i16,
pub internal_ids: Vec<SocketAddr>,
pub request_time: i64,
pub timestamp: i64,
}
Expand description
A connection Accept packet, this is sent by the server to the client. This is sent by the server and contains information about the server.
Fields§
§client_address: SocketAddr
The address of the client connecting (locally?).
system_index: i16
The system index of the server.
internal_ids: Vec<SocketAddr>
The internal id’s of the server or alternative IP’s of the server. These are addresses the client will use if it can’t connect to the server. (Not sure why this is useful)
request_time: i64
The time of the timestamp the client sent with ConnectionRequest
.
timestamp: i64
The time on the server.
Trait Implementations§
Source§impl Clone for ConnectionAccept
impl Clone for ConnectionAccept
Source§fn clone(&self) -> ConnectionAccept
fn clone(&self) -> ConnectionAccept
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 ConnectionAccept
impl Debug for ConnectionAccept
Source§impl From<ConnectionAccept> for OnlinePacket
impl From<ConnectionAccept> for OnlinePacket
Source§fn from(packet: ConnectionAccept) -> Self
fn from(packet: ConnectionAccept) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionAccept> for RakPacket
impl From<ConnectionAccept> for RakPacket
Source§fn from(packet: ConnectionAccept) -> Self
fn from(packet: ConnectionAccept) -> Self
Converts to this type from the input type.
Source§impl From<OnlinePacket> for ConnectionAccept
impl From<OnlinePacket> for ConnectionAccept
Source§fn from(packet: OnlinePacket) -> Self
fn from(packet: OnlinePacket) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for ConnectionAccept
impl From<RakPacket> for ConnectionAccept
Source§impl Reader<ConnectionAccept> for ConnectionAccept
impl Reader<ConnectionAccept> for ConnectionAccept
Source§impl Writer for ConnectionAccept
impl Writer for ConnectionAccept
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 ConnectionAccept
impl RefUnwindSafe for ConnectionAccept
impl Send for ConnectionAccept
impl Sync for ConnectionAccept
impl Unpin for ConnectionAccept
impl UnwindSafe for ConnectionAccept
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