pub struct Disconnect { /* private fields */ }Implementations§
Source§impl Disconnect
impl Disconnect
pub fn parse(bytes: &[u8]) -> Result<Self, Error>
pub fn get_connection_handle(&self) -> u16
pub fn get_op_code(&self) -> OpCode
pub fn get_reason(&self) -> DisconnectReason
pub fn get_size(&self) -> usize
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 Bytes
impl From<Disconnect> for Bytes
Source§fn from(packet: Disconnect) -> Self
fn from(packet: Disconnect) -> Self
Converts to this type from the input type.
Source§impl From<Disconnect> for Command
impl From<Disconnect> for Command
Source§fn from(packet: Disconnect) -> Command
fn from(packet: Disconnect) -> Command
Converts to this type from the input type.
Source§impl From<Disconnect> for Vec<u8>
impl From<Disconnect> for Vec<u8>
Source§fn from(packet: Disconnect) -> Self
fn from(packet: Disconnect) -> Self
Converts to this type from the input type.
Source§impl From<DisconnectBuilder> for Disconnect
impl From<DisconnectBuilder> for Disconnect
Source§fn from(builder: DisconnectBuilder) -> Disconnect
fn from(builder: DisconnectBuilder) -> Disconnect
Converts to this type from the input type.
Source§impl Packet for Disconnect
impl Packet for Disconnect
Source§impl PartialEq for Disconnect
impl PartialEq for Disconnect
Source§impl TryFrom<Command> for Disconnect
impl TryFrom<Command> for Disconnect
impl Eq for Disconnect
impl StructuralPartialEq for Disconnect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more