Enum mqtt::packet::VariablePacketError
source · pub enum VariablePacketError {
Show 17 variants
FixedHeaderError(FixedHeaderError),
ReservedPacket(u8, Vec<u8>),
IoError(Error),
ConnectPacketError(PacketError<ConnectPacket>),
ConnackPacketError(PacketError<ConnackPacket>),
PublishPacketError(PacketError<PublishPacket>),
PubackPacketError(PacketError<PubackPacket>),
PubrecPacketError(PacketError<PubrecPacket>),
PubrelPacketError(PacketError<PubrelPacket>),
PubcompPacketError(PacketError<PubcompPacket>),
PingreqPacketError(PacketError<PingreqPacket>),
PingrespPacketError(PacketError<PingrespPacket>),
SubscribePacketError(PacketError<SubscribePacket>),
SubackPacketError(PacketError<SubackPacket>),
UnsubscribePacketError(PacketError<UnsubscribePacket>),
UnsubackPacketError(PacketError<UnsubackPacket>),
DisconnectPacketError(PacketError<DisconnectPacket>),
}
Expand description
Parsing errors for variable packet
Variants§
FixedHeaderError(FixedHeaderError)
ReservedPacket(u8, Vec<u8>)
IoError(Error)
ConnectPacketError(PacketError<ConnectPacket>)
ConnackPacketError(PacketError<ConnackPacket>)
PublishPacketError(PacketError<PublishPacket>)
PubackPacketError(PacketError<PubackPacket>)
PubrecPacketError(PacketError<PubrecPacket>)
PubrelPacketError(PacketError<PubrelPacket>)
PubcompPacketError(PacketError<PubcompPacket>)
PingreqPacketError(PacketError<PingreqPacket>)
PingrespPacketError(PacketError<PingrespPacket>)
SubscribePacketError(PacketError<SubscribePacket>)
SubackPacketError(PacketError<SubackPacket>)
UnsubscribePacketError(PacketError<UnsubscribePacket>)
UnsubackPacketError(PacketError<UnsubackPacket>)
DisconnectPacketError(PacketError<DisconnectPacket>)
Trait Implementations§
source§impl Debug for VariablePacketError
impl Debug for VariablePacketError
source§impl Display for VariablePacketError
impl Display for VariablePacketError
source§impl Error for VariablePacketError
impl Error for VariablePacketError
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 From<Error> for VariablePacketError
impl From<Error> for VariablePacketError
source§impl From<FixedHeaderError> for VariablePacketError
impl From<FixedHeaderError> for VariablePacketError
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.
Auto Trait Implementations§
impl Freeze for VariablePacketError
impl !RefUnwindSafe for VariablePacketError
impl Send for VariablePacketError
impl Sync for VariablePacketError
impl Unpin for VariablePacketError
impl !UnwindSafe for VariablePacketError
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