pub enum Error<E> {
Network(E),
WriteFail,
NotReady,
Unsupported,
ProvidedClientIdTooLong,
Failed(u8),
Protocol(ProtocolError),
SessionReset,
Clock(Error),
}
Expand description
Possible errors encountered during an MQTT connection.
Variants
Network(E)
WriteFail
NotReady
Unsupported
ProvidedClientIdTooLong
Failed(u8)
Protocol(ProtocolError)
SessionReset
Clock(Error)
Trait Implementations
sourceimpl<E> From<ProtocolError> for Error<E>
impl<E> From<ProtocolError> for Error<E>
sourcefn from(error: ProtocolError) -> Self
fn from(error: ProtocolError) -> Self
Performs the conversion.
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more