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
sourceimpl Debug for VariablePacketError
impl Debug for VariablePacketError
sourceimpl Display for VariablePacketError
impl Display for VariablePacketError
sourceimpl Error for VariablePacketError
impl Error for VariablePacketError
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 From<Error> for VariablePacketError
impl From<Error> for VariablePacketError
sourceimpl From<FixedHeaderError> for VariablePacketError
impl From<FixedHeaderError> for VariablePacketError
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.
Auto Trait Implementations
impl !RefUnwindSafe for VariablePacketError
impl Send for VariablePacketError
impl Sync for VariablePacketError
impl Unpin for VariablePacketError
impl !UnwindSafe for VariablePacketError
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