pub enum PacketWriteError {
Overflow,
NullCharacterInString,
VariableByteIntegerTooLarge,
DataTooLarge,
StringTooLarge,
ConnectionSend,
}Variants§
Overflow
On attempt to put data that will not fit in buffer
NullCharacterInString
On attempt to put a string containing a null character (which is not valid in an MQTT message)
VariableByteIntegerTooLarge
On attempt to put a u32 value as a variable byte integer, where the value is too large to encode
DataTooLarge
On attempt to put binary data with too many bytes to encode
StringTooLarge
On attempt to put a string where the encoded form is too many bytes to encode
ConnectionSend
Failure to send via connection
Trait Implementations§
Source§impl Clone for PacketWriteError
impl Clone for PacketWriteError
Source§fn clone(&self) -> PacketWriteError
fn clone(&self) -> PacketWriteError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PacketWriteError
impl Debug for PacketWriteError
Source§impl Display for PacketWriteError
impl Display for PacketWriteError
Source§impl Format for PacketWriteError
Available on crate feature defmt only.
impl Format for PacketWriteError
Available on crate feature
defmt only.Source§impl From<PacketWriteError> for ClientError
impl From<PacketWriteError> for ClientError
Source§fn from(value: PacketWriteError) -> Self
fn from(value: PacketWriteError) -> Self
Converts to this type from the input type.
Source§impl From<PacketWriteError> for ClientStateError
impl From<PacketWriteError> for ClientStateError
Source§fn from(value: PacketWriteError) -> Self
fn from(value: PacketWriteError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PacketWriteError
impl PartialEq for PacketWriteError
Source§fn eq(&self, other: &PacketWriteError) -> bool
fn eq(&self, other: &PacketWriteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PacketWriteError
impl StructuralPartialEq for PacketWriteError
Auto Trait Implementations§
impl Freeze for PacketWriteError
impl RefUnwindSafe for PacketWriteError
impl Send for PacketWriteError
impl Sync for PacketWriteError
impl Unpin for PacketWriteError
impl UnsafeUnpin for PacketWriteError
impl UnwindSafe for PacketWriteError
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