pub struct LostConnection {}
Expand description
A connection lost notification. This is sent by the client when it loses connection to the server.
Trait Implementations§
Source§impl Clone for LostConnection
impl Clone for LostConnection
Source§fn clone(&self) -> LostConnection
fn clone(&self) -> LostConnection
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 LostConnection
impl Debug for LostConnection
Source§impl From<LostConnection> for OnlinePacket
impl From<LostConnection> for OnlinePacket
Source§fn from(packet: LostConnection) -> Self
fn from(packet: LostConnection) -> Self
Converts to this type from the input type.
Source§impl From<LostConnection> for RakPacket
impl From<LostConnection> for RakPacket
Source§fn from(packet: LostConnection) -> Self
fn from(packet: LostConnection) -> Self
Converts to this type from the input type.
Source§impl From<OnlinePacket> for LostConnection
impl From<OnlinePacket> for LostConnection
Source§fn from(packet: OnlinePacket) -> Self
fn from(packet: OnlinePacket) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for LostConnection
impl From<RakPacket> for LostConnection
Source§impl Reader<LostConnection> for LostConnection
impl Reader<LostConnection> for LostConnection
Source§fn read(_binary_readerr: &mut ByteReader) -> Result<LostConnection, Error>
fn read(_binary_readerr: &mut ByteReader) -> Result<LostConnection, Error>
Source§impl Writer for LostConnection
impl Writer for LostConnection
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 LostConnection
impl RefUnwindSafe for LostConnection
impl Send for LostConnection
impl Sync for LostConnection
impl Unpin for LostConnection
impl UnwindSafe for LostConnection
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