pub enum MqttError<E> {
Service(E),
Handshake(HandshakeError<E>),
}
Expand description
Errors which can occur when attempting to handle mqtt connection.
Variants§
Trait Implementations§
source§impl<E> Error for MqttError<E>
impl<E> Error for MqttError<E>
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<E> From<EncodeError> for MqttError<E>
impl<E> From<EncodeError> for MqttError<E>
source§fn from(err: EncodeError) -> Self
fn from(err: EncodeError) -> Self
Converts to this type from the input type.
source§impl<E> From<HandshakeError<E>> for MqttError<E>
impl<E> From<HandshakeError<E>> for MqttError<E>
source§fn from(source: HandshakeError<E>) -> Self
fn from(source: HandshakeError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for MqttError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for MqttError<E>
impl<E> Send for MqttError<E>where
E: Send,
impl<E> Sync for MqttError<E>where
E: Sync,
impl<E> Unpin for MqttError<E>where
E: Unpin,
impl<E> !UnwindSafe for MqttError<E>
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