pub enum ClientError {
PacketWrite(PacketWriteError),
PacketRead(PacketReadError),
ClientState(ClientStateError),
TimeoutOnResponsePacket,
Disconnected(DisconnectReasonCode),
EventHandler(EventHandlerError),
EmptyTopicNameWithAliasesDisabled,
}Expand description
Client error
Variants§
PacketWrite(PacketWriteError)
PacketRead(PacketReadError)
ClientState(ClientStateError)
TimeoutOnResponsePacket
Disconnected(DisconnectReasonCode)
EventHandler(EventHandlerError)
EmptyTopicNameWithAliasesDisabled
Client received an empty topic name when it has disabled topic aliases This indicates a server error, client should disconnect, it may send a Disconnect with DisconnectReasonCode::TopicAliasInvalid, on the assumption that the packet also had some topic alias specified.
Trait Implementations§
Source§impl Clone for ClientError
impl Clone for ClientError
Source§fn clone(&self) -> ClientError
fn clone(&self) -> ClientError
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 ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Format for ClientError
Available on crate feature defmt only.
impl Format for ClientError
Available on crate feature
defmt only.Source§impl From<ClientStateError> for ClientError
impl From<ClientStateError> for ClientError
Source§fn from(value: ClientStateError) -> Self
fn from(value: ClientStateError) -> Self
Converts to this type from the input type.
Source§impl From<EventHandlerError> for ClientError
impl From<EventHandlerError> for ClientError
Source§fn from(value: EventHandlerError) -> Self
fn from(value: EventHandlerError) -> Self
Converts to this type from the input type.
Source§impl From<PacketReadError> for ClientError
impl From<PacketReadError> for ClientError
Source§fn from(value: PacketReadError) -> Self
fn from(value: PacketReadError) -> Self
Converts to this type from the input type.
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 PartialEq for ClientError
impl PartialEq for ClientError
Source§fn eq(&self, other: &ClientError) -> bool
fn eq(&self, other: &ClientError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy 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 UnsafeUnpin 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