Enum ntex_mqtt::error::SendPacketError
source · [−]pub enum SendPacketError {
Encode(EncodeError),
PacketIdInUse(u16),
Disconnected,
}
Variants
Encode(EncodeError)
Encoder error
PacketIdInUse(u16)
Provided packet id is in use
Disconnected
Peer disconnected
Trait Implementations
sourceimpl Clone for SendPacketError
impl Clone for SendPacketError
sourcefn clone(&self) -> SendPacketError
fn clone(&self) -> SendPacketError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SendPacketError
impl Debug for SendPacketError
sourceimpl Display for SendPacketError
impl Display for SendPacketError
sourceimpl Error for SendPacketError
impl Error for SendPacketError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<SendPacketError> for SendPacketError
impl PartialEq<SendPacketError> for SendPacketError
sourcefn eq(&self, other: &SendPacketError) -> bool
fn eq(&self, other: &SendPacketError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.