pub enum MqttError {
Show 13 variants
InternalError(InternalError),
ConnectError(ConnectError),
AuthError(AuthError),
PubackError(PubackError),
PubrecError(PubrecError),
PubcompError(PubcompError),
SocketClosed(SocketClosed),
HandleClosed(HandleClosed),
ContextExited(ContextExited),
Disconnected(Disconnected),
CodecError(CodecError),
QuotaExceeded(QuotaExceeded),
MaximumPacketSizeExceeded(MaximumPacketSizeExceeded),
}
Expand description
Main library error type. All other errors are converted to this type before being returned to the user.
Variants§
InternalError(InternalError)
See InternalError
ConnectError(ConnectError)
See ConnectError
AuthError(AuthError)
See AuthError
PubackError(PubackError)
See PubackError
PubrecError(PubrecError)
See PubrecError
PubcompError(PubcompError)
See PubackError
SocketClosed(SocketClosed)
See SocketClosed
HandleClosed(HandleClosed)
See HandleClosed
ContextExited(ContextExited)
See ContextExited
Disconnected(Disconnected)
See Disconnected
CodecError(CodecError)
See CodecError
QuotaExceeded(QuotaExceeded)
See QuotaExceeded
MaximumPacketSizeExceeded(MaximumPacketSizeExceeded)
Trait Implementations§
source§impl Error for MqttError
impl Error for MqttError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<AckError<PubackReason>> for MqttError
impl From<AckError<PubackReason>> for MqttError
source§fn from(err: PubackError) -> Self
fn from(err: PubackError) -> Self
Converts to this type from the input type.
source§impl From<AckError<PubcompReason>> for MqttError
impl From<AckError<PubcompReason>> for MqttError
source§fn from(err: PubcompError) -> Self
fn from(err: PubcompError) -> Self
Converts to this type from the input type.
source§impl From<AckError<PubrecReason>> for MqttError
impl From<AckError<PubrecReason>> for MqttError
source§fn from(err: PubrecError) -> Self
fn from(err: PubrecError) -> Self
Converts to this type from the input type.
source§impl From<CodecError> for MqttError
impl From<CodecError> for MqttError
source§fn from(err: CodecError) -> Self
fn from(err: CodecError) -> Self
Converts to this type from the input type.
source§impl From<ConnectError> for MqttError
impl From<ConnectError> for MqttError
source§fn from(err: ConnectError) -> Self
fn from(err: ConnectError) -> Self
Converts to this type from the input type.
source§impl From<ContextExited> for MqttError
impl From<ContextExited> for MqttError
source§fn from(err: ContextExited) -> Self
fn from(err: ContextExited) -> Self
Converts to this type from the input type.
source§impl From<Disconnected> for MqttError
impl From<Disconnected> for MqttError
source§fn from(err: Disconnected) -> Self
fn from(err: Disconnected) -> Self
Converts to this type from the input type.
source§impl From<HandleClosed> for MqttError
impl From<HandleClosed> for MqttError
source§fn from(err: HandleClosed) -> Self
fn from(err: HandleClosed) -> Self
Converts to this type from the input type.
source§impl From<InternalError> for MqttError
impl From<InternalError> for MqttError
source§fn from(err: InternalError) -> Self
fn from(err: InternalError) -> Self
Converts to this type from the input type.
source§impl From<MaximumPacketSizeExceeded> for MqttError
impl From<MaximumPacketSizeExceeded> for MqttError
source§fn from(err: MaximumPacketSizeExceeded) -> Self
fn from(err: MaximumPacketSizeExceeded) -> Self
Converts to this type from the input type.
source§impl From<QuotaExceeded> for MqttError
impl From<QuotaExceeded> for MqttError
source§fn from(err: QuotaExceeded) -> Self
fn from(err: QuotaExceeded) -> Self
Converts to this type from the input type.
source§impl From<SocketClosed> for MqttError
impl From<SocketClosed> for MqttError
source§fn from(err: SocketClosed) -> Self
fn from(err: SocketClosed) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for MqttError
impl From<SystemTimeError> for MqttError
source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Converts to this type from the input type.