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)>
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()
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.
Source§impl<T> From<TrySendError<T>> for MqttError
impl<T> From<TrySendError<T>> for MqttError
Source§fn from(err: TrySendError<T>) -> Self
fn from(err: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for MqttError
impl RefUnwindSafe for MqttError
impl Send for MqttError
impl Sync for MqttError
impl Unpin for MqttError
impl UnwindSafe for MqttError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more