Enum mqtt::control::fixed_header::FixedHeaderError
source · pub enum FixedHeaderError {
MalformedRemainingLength,
ReservedType(u8, u32),
PacketTypeError(PacketTypeError),
IoError(Error),
}
Variants§
Trait Implementations§
source§impl Debug for FixedHeaderError
impl Debug for FixedHeaderError
source§impl Display for FixedHeaderError
impl Display for FixedHeaderError
source§impl Error for FixedHeaderError
impl Error for FixedHeaderError
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 FixedHeaderError
impl From<Error> for FixedHeaderError
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<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<PacketTypeError> for FixedHeaderError
impl From<PacketTypeError> for FixedHeaderError
source§fn from(source: PacketTypeError) -> Self
fn from(source: PacketTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FixedHeaderError
impl !RefUnwindSafe for FixedHeaderError
impl Send for FixedHeaderError
impl Sync for FixedHeaderError
impl Unpin for FixedHeaderError
impl !UnwindSafe for FixedHeaderError
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