Enum ClientError
#[non_exhaustive]pub enum ClientError {
InvalidState,
UnexpectedPacket,
ProtocolError,
PacketIdExhausted,
QuotaExhausted,
QoSNotSupported,
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.
UnexpectedPacket
Received a packet type that the server should never send.
ProtocolError
Server violated the protocol.
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.
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 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