pub enum ClientStateError {
Show 25 variants
PacketWrite(PacketWriteError),
PacketRead(PacketReadError),
NotIdle,
AuthNotSupported,
Qos2NotSupported,
ReceivedQos2PublishNotSupported,
ClientIsWaitingForResponse,
NotConnected,
ReceiveWhenNotConnectedOrConnecting,
UnexpectedPuback,
UnexpectedPubackPacketIdentifier,
UnexpectedSuback,
UnexpectedSubackPacketIdentifier,
UnexpectedUnsuback,
UnexpectedUnsubackPacketIdentifier,
UnexpectedPingresp,
Disconnect,
ServerOnlyMessageReceived,
ReceivedPacketOtherThanConnackOrAuthWhenConnecting,
ReceivedConnackWhenNotConnecting,
UnexpectedSessionPresentForCleanStart,
Connect(ConnectReasonCode),
Subscribe(SubscribeReasonCode),
Publish(PublishReasonCode),
Unsubscribe(UnsubscribeReasonCode),
}Expand description
ClientState error
Variants§
PacketWrite(PacketWriteError)
PacketRead(PacketReadError)
NotIdle
AuthNotSupported
Qos2NotSupported
ReceivedQos2PublishNotSupported
ClientIsWaitingForResponse
NotConnected
ReceiveWhenNotConnectedOrConnecting
UnexpectedPuback
UnexpectedPubackPacketIdentifier
UnexpectedSuback
UnexpectedSubackPacketIdentifier
UnexpectedUnsuback
UnexpectedUnsubackPacketIdentifier
UnexpectedPingresp
Disconnect
ServerOnlyMessageReceived
ReceivedPacketOtherThanConnackOrAuthWhenConnecting
ReceivedConnackWhenNotConnecting
UnexpectedSessionPresentForCleanStart
Connect(ConnectReasonCode)
Subscribe(SubscribeReasonCode)
Publish(PublishReasonCode)
Unsubscribe(UnsubscribeReasonCode)
Trait Implementations§
Source§impl Clone for ClientStateError
impl Clone for ClientStateError
Source§fn clone(&self) -> ClientStateError
fn clone(&self) -> ClientStateError
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 ClientStateError
impl Debug for ClientStateError
Source§impl Display for ClientStateError
impl Display for ClientStateError
Source§impl Format for ClientStateError
Available on crate feature defmt only.
impl Format for ClientStateError
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<PacketReadError> for ClientStateError
impl From<PacketReadError> for ClientStateError
Source§fn from(value: PacketReadError) -> Self
fn from(value: PacketReadError) -> 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 ClientStateError
impl PartialEq for ClientStateError
Source§fn eq(&self, other: &ClientStateError) -> bool
fn eq(&self, other: &ClientStateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ClientStateError
impl StructuralPartialEq for ClientStateError
Auto Trait Implementations§
impl Freeze for ClientStateError
impl RefUnwindSafe for ClientStateError
impl Send for ClientStateError
impl Sync for ClientStateError
impl Unpin for ClientStateError
impl UnsafeUnpin for ClientStateError
impl UnwindSafe for ClientStateError
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