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