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 ==
.impl Copy for FixedHeaderError
impl Eq for FixedHeaderError
impl StructuralEq for FixedHeaderError
impl StructuralPartialEq for FixedHeaderError
Auto Trait Implementations§
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