pub struct NewConnection {
pub server_address: SocketAddr,
pub system_address: Vec<SocketAddr>,
pub request_time: i64,
pub timestamp: i64,
}
Expand description
Going to be completely Honest here, I have no idea what this is used for right now, even after reading the source code.
Fields§
§server_address: SocketAddr
The external IP Address of the server.
system_address: Vec<SocketAddr>
The internal IP Address of the server.
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 NewConnection
impl Clone for NewConnection
Source§fn clone(&self) -> NewConnection
fn clone(&self) -> NewConnection
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 NewConnection
impl Debug for NewConnection
Source§impl From<NewConnection> for OnlinePacket
impl From<NewConnection> for OnlinePacket
Source§fn from(packet: NewConnection) -> Self
fn from(packet: NewConnection) -> Self
Converts to this type from the input type.
Source§impl From<NewConnection> for RakPacket
impl From<NewConnection> for RakPacket
Source§fn from(packet: NewConnection) -> Self
fn from(packet: NewConnection) -> Self
Converts to this type from the input type.
Source§impl From<OnlinePacket> for NewConnection
impl From<OnlinePacket> for NewConnection
Source§fn from(packet: OnlinePacket) -> Self
fn from(packet: OnlinePacket) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for NewConnection
impl From<RakPacket> for NewConnection
Source§impl Reader<NewConnection> for NewConnection
impl Reader<NewConnection> for NewConnection
Source§impl Writer for NewConnection
impl Writer for NewConnection
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 NewConnection
impl RefUnwindSafe for NewConnection
impl Send for NewConnection
impl Sync for NewConnection
impl Unpin for NewConnection
impl UnwindSafe for NewConnection
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