#[non_exhaustive]pub enum Error<E> {
WriteFail,
NotReady,
Unsupported,
NoResponseTopic,
SessionReset,
Network(E),
Minimq(MinimqError),
}
Expand description
Possible errors encountered during an MQTT connection.
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.
Trait Implementations§
source§impl<E> From<MinimqError> for Error<E>
impl<E> From<MinimqError> for Error<E>
source§fn from(minimq: MinimqError) -> Self
fn from(minimq: MinimqError) -> Self
Converts to this type from the input type.
source§impl<E> From<ProtocolError> for Error<E>
impl<E> From<ProtocolError> for Error<E>
source§fn from(p: ProtocolError) -> Self
fn from(p: ProtocolError) -> Self
Converts to this type from the input type.
source§impl<E: PartialEq> PartialEq for Error<E>
impl<E: PartialEq> PartialEq for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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