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§
source§impl<P> Debug for PacketError<P>where
P: DecodablePacket,
impl<P> Debug for PacketError<P>where
P: DecodablePacket,
source§impl<P> Display for PacketError<P>where
P: DecodablePacket,
impl<P> Display for PacketError<P>where
P: DecodablePacket,
source§impl<P> Error for PacketError<P>where
P: DecodablePacket,
impl<P> Error for PacketError<P>where
P: DecodablePacket,
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<P> From<Error> for PacketError<P>where
P: DecodablePacket,
impl<P> From<Error> for PacketError<P>where
P: DecodablePacket,
source§impl<P> From<FixedHeaderError> for PacketError<P>where
P: DecodablePacket,
impl<P> From<FixedHeaderError> for PacketError<P>where
P: DecodablePacket,
source§fn from(source: FixedHeaderError) -> Self
fn from(source: FixedHeaderError) -> Self
Converts to this type from the input type.
source§impl From<PacketError<ConnackPacket>> for VariablePacketError
impl From<PacketError<ConnackPacket>> for VariablePacketError
source§fn from(source: PacketError<ConnackPacket>) -> Self
fn from(source: PacketError<ConnackPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<ConnectPacket>> for VariablePacketError
impl From<PacketError<ConnectPacket>> for VariablePacketError
source§fn from(source: PacketError<ConnectPacket>) -> Self
fn from(source: PacketError<ConnectPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<DisconnectPacket>> for VariablePacketError
impl From<PacketError<DisconnectPacket>> for VariablePacketError
source§fn from(source: PacketError<DisconnectPacket>) -> Self
fn from(source: PacketError<DisconnectPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PingreqPacket>> for VariablePacketError
impl From<PacketError<PingreqPacket>> for VariablePacketError
source§fn from(source: PacketError<PingreqPacket>) -> Self
fn from(source: PacketError<PingreqPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PingrespPacket>> for VariablePacketError
impl From<PacketError<PingrespPacket>> for VariablePacketError
source§fn from(source: PacketError<PingrespPacket>) -> Self
fn from(source: PacketError<PingrespPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PubackPacket>> for VariablePacketError
impl From<PacketError<PubackPacket>> for VariablePacketError
source§fn from(source: PacketError<PubackPacket>) -> Self
fn from(source: PacketError<PubackPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PubcompPacket>> for VariablePacketError
impl From<PacketError<PubcompPacket>> for VariablePacketError
source§fn from(source: PacketError<PubcompPacket>) -> Self
fn from(source: PacketError<PubcompPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PublishPacket>> for VariablePacketError
impl From<PacketError<PublishPacket>> for VariablePacketError
source§fn from(source: PacketError<PublishPacket>) -> Self
fn from(source: PacketError<PublishPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PubrecPacket>> for VariablePacketError
impl From<PacketError<PubrecPacket>> for VariablePacketError
source§fn from(source: PacketError<PubrecPacket>) -> Self
fn from(source: PacketError<PubrecPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<PubrelPacket>> for VariablePacketError
impl From<PacketError<PubrelPacket>> for VariablePacketError
source§fn from(source: PacketError<PubrelPacket>) -> Self
fn from(source: PacketError<PubrelPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<SubackPacket>> for VariablePacketError
impl From<PacketError<SubackPacket>> for VariablePacketError
source§fn from(source: PacketError<SubackPacket>) -> Self
fn from(source: PacketError<SubackPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<SubscribePacket>> for VariablePacketError
impl From<PacketError<SubscribePacket>> for VariablePacketError
source§fn from(source: PacketError<SubscribePacket>) -> Self
fn from(source: PacketError<SubscribePacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<UnsubackPacket>> for VariablePacketError
impl From<PacketError<UnsubackPacket>> for VariablePacketError
source§fn from(source: PacketError<UnsubackPacket>) -> Self
fn from(source: PacketError<UnsubackPacket>) -> Self
Converts to this type from the input type.
source§impl From<PacketError<UnsubscribePacket>> for VariablePacketError
impl From<PacketError<UnsubscribePacket>> for VariablePacketError
source§fn from(source: PacketError<UnsubscribePacket>) -> Self
fn from(source: PacketError<UnsubscribePacket>) -> Self
Converts to this type from the input type.
source§impl<P: DecodablePacket> From<TopicNameDecodeError> for PacketError<P>
impl<P: DecodablePacket> From<TopicNameDecodeError> for PacketError<P>
source§fn from(e: TopicNameDecodeError) -> Self
fn from(e: TopicNameDecodeError) -> Self
Converts to this type from the input type.
source§impl<P> From<TopicNameError> for PacketError<P>where
P: DecodablePacket,
impl<P> From<TopicNameError> for PacketError<P>where
P: DecodablePacket,
source§fn from(source: TopicNameError) -> Self
fn from(source: TopicNameError) -> Self
Converts to this type from the input type.
source§impl<P> From<VariableHeaderError> for PacketError<P>where
P: DecodablePacket,
impl<P> From<VariableHeaderError> for PacketError<P>where
P: DecodablePacket,
source§fn from(source: VariableHeaderError) -> Self
fn from(source: VariableHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for PacketError<P>
impl<P> !RefUnwindSafe for PacketError<P>
impl<P> Send for PacketError<P>
impl<P> Sync for PacketError<P>
impl<P> Unpin for PacketError<P>
impl<P> !UnwindSafe for PacketError<P>
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