Enum mqtt::packet::PacketError
[−]
[src]
pub enum PacketError<'a, T: Packet<'a>> { FixedHeaderError(FixedHeaderError), VariableHeaderError(VariableHeaderError), PayloadError(T::Payload::Err), MalformedPacket(String), StringEncodeError(StringEncodeError), IoError(Error), TopicNameError(TopicNameError), }
Variants
FixedHeaderError(FixedHeaderError)VariableHeaderError(VariableHeaderError)PayloadError(T::Payload::Err)MalformedPacket(String)StringEncodeError(StringEncodeError)IoError(Error)TopicNameError(TopicNameError)Trait Implementations
impl<'a, T: Debug + Packet<'a>> Debug for PacketError<'a, T>[src]
impl<'a, T: Packet<'a>> Display for PacketError<'a, T>[src]
impl<'a, T: Packet<'a> + Debug> Error for PacketError<'a, T>[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<'a, T: Packet<'a>> From<FixedHeaderError> for PacketError<'a, T>[src]
fn from(err: FixedHeaderError) -> PacketError<'a, T>
Performs the conversion.
impl<'a, T: Packet<'a>> From<VariableHeaderError> for PacketError<'a, T>[src]
fn from(err: VariableHeaderError) -> PacketError<'a, T>
Performs the conversion.
impl<'a, T: Packet<'a>> From<Error> for PacketError<'a, T>[src]
fn from(err: Error) -> PacketError<'a, T>
Performs the conversion.
impl<'a, T: Packet<'a>> From<StringEncodeError> for PacketError<'a, T>[src]
fn from(err: StringEncodeError) -> PacketError<'a, T>
Performs the conversion.
impl<'a, T: Packet<'a>> From<TopicNameError> for PacketError<'a, T>[src]
fn from(err: TopicNameError) -> PacketError<'a, T>
Performs the conversion.