pub struct CantConnect {
pub reason: i32,
pub parameter: String,
}
Fields§
§reason: i32
§parameter: String
Trait Implementations§
source§impl BaseParser for CantConnect
impl BaseParser for CantConnect
fn parse(packet: &mut HPacket) -> Self
fn append_to_packet(&self, packet: &mut HPacket)
fn get_direction() -> HDirection
fn get_packet_name() -> String
source§impl Clone for CantConnect
impl Clone for CantConnect
source§fn clone(&self) -> CantConnect
fn clone(&self) -> CantConnect
Returns a copy 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 CantConnect
impl Debug for CantConnect
source§impl Default for CantConnect
impl Default for CantConnect
source§fn default() -> CantConnect
fn default() -> CantConnect
Returns the “default value” for a type. Read more
source§impl PacketVariable for CantConnect
impl PacketVariable for CantConnect
source§impl PartialEq<CantConnect> for CantConnect
impl PartialEq<CantConnect> for CantConnect
source§fn eq(&self, other: &CantConnect) -> bool
fn eq(&self, other: &CantConnect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CantConnect
Auto Trait Implementations§
impl RefUnwindSafe for CantConnect
impl Send for CantConnect
impl Sync for CantConnect
impl Unpin for CantConnect
impl UnwindSafe for CantConnect
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