Enum ntex_mqtt::error::SendPacketError
source · pub enum SendPacketError {
Encode(EncodeError),
PacketIdInUse(NonZeroU16),
Disconnected,
}
Variants§
Encode(EncodeError)
Encoder error
PacketIdInUse(NonZeroU16)
Provided packet id is in use
Disconnected
Peer disconnected
Trait Implementations§
source§impl Clone for SendPacketError
impl Clone for SendPacketError
source§fn clone(&self) -> SendPacketError
fn clone(&self) -> SendPacketError
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 SendPacketError
impl Debug for SendPacketError
source§impl Display for SendPacketError
impl Display for SendPacketError
source§impl Error for SendPacketError
impl Error for SendPacketError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<EncodeError> for SendPacketError
impl From<EncodeError> for SendPacketError
source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
source§impl PartialEq<SendPacketError> for SendPacketError
impl PartialEq<SendPacketError> for SendPacketError
source§fn eq(&self, other: &SendPacketError) -> bool
fn eq(&self, other: &SendPacketError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SendPacketError
impl Eq for SendPacketError
impl StructuralEq for SendPacketError
impl StructuralPartialEq for SendPacketError
Auto Trait Implementations§
impl RefUnwindSafe for SendPacketError
impl Send for SendPacketError
impl Sync for SendPacketError
impl Unpin for SendPacketError
impl UnwindSafe for SendPacketError
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