Enum ClientError
#[non_exhaustive]pub enum ClientError {
InvalidState,
PacketIdExhausted,
QuotaExhausted,
QoSNotSupported,
InvalidQoS,
PayloadTooLarge,
RetainNotAvailable,
WildcardSubNotAvailable,
SubIdNotAvailable,
SharedSubNotAvailable,
}Expand description
Errors from the client state machine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidState
Operation not valid in the current connection state.
PacketIdExhausted
No more packet identifiers available (all 65 535 in use).
QuotaExhausted
Send quota exhausted (Receive Maximum reached).
QoSNotSupported
QoS level exceeds the server’s Maximum QoS capability.
InvalidQoS
QoS 0 was passed to a store path that only tracks QoS 1 or 2
publishes (the outbox). A QoS 0 publish is fire-and-forget and must
be sent directly rather than stored.
PayloadTooLarge
The publish payload is larger than can be encoded in a single MQTT packet (the Remaining Length VBI maximum, ~256 MiB).
RetainNotAvailable
Server declared Retain Available = false.
WildcardSubNotAvailable
Server declared Wildcard Subscription Available = false.
SubIdNotAvailable
Server declared Subscription Identifiers Available = false.
Server declared Shared Subscription Available = false.
Trait Implementations§
§impl Clone for ClientError
impl Clone for ClientError
§fn clone(&self) -> ClientError
fn clone(&self) -> ClientError
Returns a duplicate 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 more§impl Debug for ClientError
impl Debug for ClientError
§impl Display for ClientError
impl Display for ClientError
§impl Error for ClientError
impl Error for ClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
§impl PartialEq for ClientError
impl PartialEq for ClientError
impl Copy for ClientError
impl Eq for ClientError
impl StructuralPartialEq for ClientError
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnwindSafe for ClientError
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