pub enum ConnectionError {
Show 16 variants
MqttState(StateError),
Timeout(Elapsed),
Websocket(Error),
WsConnect(Error),
Tls(Error),
Io(Error),
ConnectionRefused(ConnectReturnCode),
NotConnAck(Box<Packet>),
SessionStateMismatch {
clean_start: bool,
session_present: bool,
},
BrokerTransportMismatch,
RequestsDone,
AuthProcessingError,
InvalidUrl(UrlError),
Proxy(ProxyError),
ResponseValidation(ValidationError),
RequestModifier(Box<dyn Error + Send + Sync>),
}Expand description
Critical errors during eventloop polling
Variants§
MqttState(StateError)
Timeout(Elapsed)
Websocket(Error)
Available on crate feature
websocket only.WsConnect(Error)
Available on crate feature
websocket only.Tls(Error)
Available on crate features
use-rustls-no-provider or use-native-tls only.Io(Error)
ConnectionRefused(ConnectReturnCode)
NotConnAck(Box<Packet>)
SessionStateMismatch
BrokerTransportMismatch
RequestsDone
All request senders have been dropped. Use AsyncClient::disconnect for MQTT-level
graceful shutdown with a DISCONNECT packet.
AuthProcessingError
InvalidUrl(UrlError)
Available on crate feature
websocket only.Proxy(ProxyError)
Available on crate feature
proxy only.ResponseValidation(ValidationError)
Available on crate feature
websocket only.RequestModifier(Box<dyn Error + Send + Sync>)
Available on crate feature
websocket only.Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl Display for ConnectionError
impl Display for ConnectionError
Source§impl Error for ConnectionError
impl Error for ConnectionError
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<Elapsed> for ConnectionError
impl From<Elapsed> for ConnectionError
Source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
Source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
Source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
Source§impl From<ProxyError> for ConnectionError
impl From<ProxyError> for ConnectionError
Source§fn from(source: ProxyError) -> Self
fn from(source: ProxyError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for ConnectionError
impl From<StateError> for ConnectionError
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
Source§impl From<UrlError> for ConnectionError
impl From<UrlError> for ConnectionError
Source§impl From<ValidationError> for ConnectionError
impl From<ValidationError> for ConnectionError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionError
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
impl !UnwindSafe for ConnectionError
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