Enum for_mqtt_client::protocol::packet::FixedHeaderError
source · pub enum FixedHeaderError {
InsufficientBytes(usize),
MalformedRemainingLength,
}Expand description
Error during serialization and deserialization
Variants§
Implementations§
source§impl FixedHeaderError
impl FixedHeaderError
pub fn to_discard(&self) -> bool
Trait Implementations§
source§impl Clone for FixedHeaderError
impl Clone for FixedHeaderError
source§fn clone(&self) -> FixedHeaderError
fn clone(&self) -> FixedHeaderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FixedHeaderError
impl Debug for FixedHeaderError
source§impl From<FixedHeaderError> for PacketParseError
impl From<FixedHeaderError> for PacketParseError
source§fn from(value: FixedHeaderError) -> Self
fn from(value: FixedHeaderError) -> Self
Converts to this type from the input type.
source§impl PartialEq<FixedHeaderError> for FixedHeaderError
impl PartialEq<FixedHeaderError> for FixedHeaderError
source§fn eq(&self, other: &FixedHeaderError) -> bool
fn eq(&self, other: &FixedHeaderError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.