Enum mqtt::packet::PacketError
source · [−]pub enum PacketError<P> where
P: DecodablePacket, {
FixedHeaderError(FixedHeaderError),
VariableHeaderError(VariableHeaderError),
PayloadError(<P as DecodablePacket>::DecodePacketError),
IoError(Error),
TopicNameError(TopicNameError),
}
Expand description
Parsing errors for packet
Variants
FixedHeaderError(FixedHeaderError)
VariableHeaderError(VariableHeaderError)
PayloadError(<P as DecodablePacket>::DecodePacketError)
IoError(Error)
TopicNameError(TopicNameError)
Trait Implementations
sourceimpl<P> Debug for PacketError<P> where
P: DecodablePacket,
impl<P> Debug for PacketError<P> where
P: DecodablePacket,
sourceimpl<P> Display for PacketError<P> where
P: DecodablePacket,
impl<P> Display for PacketError<P> where
P: DecodablePacket,
sourceimpl<P> Error for PacketError<P> where
P: DecodablePacket,
impl<P> Error for PacketError<P> where
P: DecodablePacket,
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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<P> From<Error> for PacketError<P> where
P: DecodablePacket,
impl<P> From<Error> for PacketError<P> where
P: DecodablePacket,
sourceimpl<P> From<FixedHeaderError> for PacketError<P> where
P: DecodablePacket,
impl<P> From<FixedHeaderError> for PacketError<P> where
P: DecodablePacket,
sourcefn from(source: FixedHeaderError) -> Self
fn from(source: FixedHeaderError) -> Self
Performs the conversion.
sourceimpl From<PacketError<ConnackPacket>> for VariablePacketError
impl From<PacketError<ConnackPacket>> for VariablePacketError
sourcefn from(source: PacketError<ConnackPacket>) -> Self
fn from(source: PacketError<ConnackPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<ConnectPacket>> for VariablePacketError
impl From<PacketError<ConnectPacket>> for VariablePacketError
sourcefn from(source: PacketError<ConnectPacket>) -> Self
fn from(source: PacketError<ConnectPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<DisconnectPacket>> for VariablePacketError
impl From<PacketError<DisconnectPacket>> for VariablePacketError
sourcefn from(source: PacketError<DisconnectPacket>) -> Self
fn from(source: PacketError<DisconnectPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PingreqPacket>> for VariablePacketError
impl From<PacketError<PingreqPacket>> for VariablePacketError
sourcefn from(source: PacketError<PingreqPacket>) -> Self
fn from(source: PacketError<PingreqPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PingrespPacket>> for VariablePacketError
impl From<PacketError<PingrespPacket>> for VariablePacketError
sourcefn from(source: PacketError<PingrespPacket>) -> Self
fn from(source: PacketError<PingrespPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PubackPacket>> for VariablePacketError
impl From<PacketError<PubackPacket>> for VariablePacketError
sourcefn from(source: PacketError<PubackPacket>) -> Self
fn from(source: PacketError<PubackPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PubcompPacket>> for VariablePacketError
impl From<PacketError<PubcompPacket>> for VariablePacketError
sourcefn from(source: PacketError<PubcompPacket>) -> Self
fn from(source: PacketError<PubcompPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PublishPacket>> for VariablePacketError
impl From<PacketError<PublishPacket>> for VariablePacketError
sourcefn from(source: PacketError<PublishPacket>) -> Self
fn from(source: PacketError<PublishPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PubrecPacket>> for VariablePacketError
impl From<PacketError<PubrecPacket>> for VariablePacketError
sourcefn from(source: PacketError<PubrecPacket>) -> Self
fn from(source: PacketError<PubrecPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<PubrelPacket>> for VariablePacketError
impl From<PacketError<PubrelPacket>> for VariablePacketError
sourcefn from(source: PacketError<PubrelPacket>) -> Self
fn from(source: PacketError<PubrelPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<SubackPacket>> for VariablePacketError
impl From<PacketError<SubackPacket>> for VariablePacketError
sourcefn from(source: PacketError<SubackPacket>) -> Self
fn from(source: PacketError<SubackPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<SubscribePacket>> for VariablePacketError
impl From<PacketError<SubscribePacket>> for VariablePacketError
sourcefn from(source: PacketError<SubscribePacket>) -> Self
fn from(source: PacketError<SubscribePacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<UnsubackPacket>> for VariablePacketError
impl From<PacketError<UnsubackPacket>> for VariablePacketError
sourcefn from(source: PacketError<UnsubackPacket>) -> Self
fn from(source: PacketError<UnsubackPacket>) -> Self
Performs the conversion.
sourceimpl From<PacketError<UnsubscribePacket>> for VariablePacketError
impl From<PacketError<UnsubscribePacket>> for VariablePacketError
sourcefn from(source: PacketError<UnsubscribePacket>) -> Self
fn from(source: PacketError<UnsubscribePacket>) -> Self
Performs the conversion.
sourceimpl<P: DecodablePacket> From<TopicNameDecodeError> for PacketError<P>
impl<P: DecodablePacket> From<TopicNameDecodeError> for PacketError<P>
sourcefn from(e: TopicNameDecodeError) -> Self
fn from(e: TopicNameDecodeError) -> Self
Performs the conversion.
sourceimpl<P> From<TopicNameError> for PacketError<P> where
P: DecodablePacket,
impl<P> From<TopicNameError> for PacketError<P> where
P: DecodablePacket,
sourcefn from(source: TopicNameError) -> Self
fn from(source: TopicNameError) -> Self
Performs the conversion.
sourceimpl<P> From<VariableHeaderError> for PacketError<P> where
P: DecodablePacket,
impl<P> From<VariableHeaderError> for PacketError<P> where
P: DecodablePacket,
sourcefn from(source: VariableHeaderError) -> Self
fn from(source: VariableHeaderError) -> Self
Performs the conversion.
Auto Trait Implementations
impl<P> !RefUnwindSafe for PacketError<P>
impl<P> Send for PacketError<P> where
<P as DecodablePacket>::DecodePacketError: Send,
impl<P> Sync for PacketError<P> where
<P as DecodablePacket>::DecodePacketError: Sync,
impl<P> Unpin for PacketError<P> where
<P as DecodablePacket>::DecodePacketError: Unpin,
impl<P> !UnwindSafe for PacketError<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more