pub enum ConnectionError {
Show 13 variants
MqttState(StateError),
NetworkTimeout,
FlushTimeout,
Websocket(Error),
WsConnect(Error),
Tls(Error),
Io(Error),
ConnectionRefused(ConnectReturnCode),
NotConnAck(Packet),
RequestsDone,
InvalidUrl(UrlError),
Proxy(ProxyError),
ResponseValidation(ValidationError),
}
Expand description
Critical errors during eventloop polling
Variants§
MqttState(StateError)
NetworkTimeout
FlushTimeout
Websocket(Error)
WsConnect(Error)
Tls(Error)
Io(Error)
ConnectionRefused(ConnectReturnCode)
NotConnAck(Packet)
RequestsDone
InvalidUrl(UrlError)
Proxy(ProxyError)
ResponseValidation(ValidationError)
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<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<Error> for ConnectionError
impl From<Error> for ConnectionError
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.
Auto Trait Implementations§
impl !Freeze for ConnectionError
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin 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