Enum mqtt::packet::PacketError [−][src]
pub enum PacketError<T: Packet> { FixedHeaderError(FixedHeaderError), VariableHeaderError(VariableHeaderError), PayloadError(<<T as Packet>::Payload as Encodable>::Err), MalformedPacket(String), StringEncodeError(StringEncodeError), IoError(Error), TopicNameError(TopicNameError), }
Parsing errors for packet
Variants
FixedHeaderError(FixedHeaderError)
VariableHeaderError(VariableHeaderError)
PayloadError(<<T as Packet>::Payload as Encodable>::Err)
MalformedPacket(String)
StringEncodeError(StringEncodeError)
IoError(Error)
TopicNameError(TopicNameError)
Trait Implementations
impl<T: Debug + Packet> Debug for PacketError<T>
[src]
impl<T: Debug + Packet> Debug for PacketError<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Packet> Display for PacketError<T>
[src]
impl<T: Packet> Display for PacketError<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Packet + Debug> Error for PacketError<T>
[src]
impl<T: Packet + Debug> Error for PacketError<T>
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<T: Packet> From<FixedHeaderError> for PacketError<T>
[src]
impl<T: Packet> From<FixedHeaderError> for PacketError<T>
fn from(err: FixedHeaderError) -> PacketError<T>
[src]
fn from(err: FixedHeaderError) -> PacketError<T>
Performs the conversion.
impl<T: Packet> From<VariableHeaderError> for PacketError<T>
[src]
impl<T: Packet> From<VariableHeaderError> for PacketError<T>
fn from(err: VariableHeaderError) -> PacketError<T>
[src]
fn from(err: VariableHeaderError) -> PacketError<T>
Performs the conversion.
impl<T: Packet> From<Error> for PacketError<T>
[src]
impl<T: Packet> From<Error> for PacketError<T>
fn from(err: Error) -> PacketError<T>
[src]
fn from(err: Error) -> PacketError<T>
Performs the conversion.
impl<T: Packet> From<StringEncodeError> for PacketError<T>
[src]
impl<T: Packet> From<StringEncodeError> for PacketError<T>
fn from(err: StringEncodeError) -> PacketError<T>
[src]
fn from(err: StringEncodeError) -> PacketError<T>
Performs the conversion.
impl<T: Packet> From<TopicNameError> for PacketError<T>
[src]
impl<T: Packet> From<TopicNameError> for PacketError<T>
fn from(err: TopicNameError) -> PacketError<T>
[src]
fn from(err: TopicNameError) -> PacketError<T>
Performs the conversion.
impl From<PacketError<ConnectPacket>> for VariablePacketError
[src]
impl From<PacketError<ConnectPacket>> for VariablePacketError
fn from(err: PacketError<ConnectPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<ConnectPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<ConnackPacket>> for VariablePacketError
[src]
impl From<PacketError<ConnackPacket>> for VariablePacketError
fn from(err: PacketError<ConnackPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<ConnackPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PublishPacket>> for VariablePacketError
[src]
impl From<PacketError<PublishPacket>> for VariablePacketError
fn from(err: PacketError<PublishPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PublishPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PubackPacket>> for VariablePacketError
[src]
impl From<PacketError<PubackPacket>> for VariablePacketError
fn from(err: PacketError<PubackPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PubackPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PubrecPacket>> for VariablePacketError
[src]
impl From<PacketError<PubrecPacket>> for VariablePacketError
fn from(err: PacketError<PubrecPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PubrecPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PubrelPacket>> for VariablePacketError
[src]
impl From<PacketError<PubrelPacket>> for VariablePacketError
fn from(err: PacketError<PubrelPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PubrelPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PubcompPacket>> for VariablePacketError
[src]
impl From<PacketError<PubcompPacket>> for VariablePacketError
fn from(err: PacketError<PubcompPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PubcompPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PingreqPacket>> for VariablePacketError
[src]
impl From<PacketError<PingreqPacket>> for VariablePacketError
fn from(err: PacketError<PingreqPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PingreqPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<PingrespPacket>> for VariablePacketError
[src]
impl From<PacketError<PingrespPacket>> for VariablePacketError
fn from(err: PacketError<PingrespPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<PingrespPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<SubscribePacket>> for VariablePacketError
[src]
impl From<PacketError<SubscribePacket>> for VariablePacketError
fn from(err: PacketError<SubscribePacket>) -> VariablePacketError
[src]
fn from(err: PacketError<SubscribePacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<SubackPacket>> for VariablePacketError
[src]
impl From<PacketError<SubackPacket>> for VariablePacketError
fn from(err: PacketError<SubackPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<SubackPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<UnsubscribePacket>> for VariablePacketError
[src]
impl From<PacketError<UnsubscribePacket>> for VariablePacketError
fn from(err: PacketError<UnsubscribePacket>) -> VariablePacketError
[src]
fn from(err: PacketError<UnsubscribePacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<UnsubackPacket>> for VariablePacketError
[src]
impl From<PacketError<UnsubackPacket>> for VariablePacketError
fn from(err: PacketError<UnsubackPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<UnsubackPacket>) -> VariablePacketError
Performs the conversion.
impl From<PacketError<DisconnectPacket>> for VariablePacketError
[src]
impl From<PacketError<DisconnectPacket>> for VariablePacketError
fn from(err: PacketError<DisconnectPacket>) -> VariablePacketError
[src]
fn from(err: PacketError<DisconnectPacket>) -> VariablePacketError
Performs the conversion.