pub enum AsyncError {
Mbus(MbusError),
WorkerClosed,
UnexpectedResponseType,
Timeout,
}Expand description
Async facade error type.
Variants§
Mbus(MbusError)
Error propagated from the underlying Modbus client stack.
WorkerClosed
Background worker channel is closed or worker thread has stopped.
UnexpectedResponseType
Internal response routing mismatch between request and callback payload type.
Timeout
Per-request timeout elapsed before the server responded.
Set via AsyncClientCore::set_request_timeout. The in-flight entry
remains in the background task until the transport delivers or errors;
call connect to reset transport state.
Trait Implementations§
Source§impl Debug for AsyncError
impl Debug for AsyncError
Source§impl Display for AsyncError
impl Display for AsyncError
impl Eq for AsyncError
Source§impl Error for AsyncError
impl Error for AsyncError
1.30.0 · 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<MbusError> for AsyncError
impl From<MbusError> for AsyncError
Source§fn from(value: MbusError) -> AsyncError
fn from(value: MbusError) -> AsyncError
Converts to this type from the input type.
Source§impl PartialEq for AsyncError
impl PartialEq for AsyncError
Source§fn eq(&self, other: &AsyncError) -> bool
fn eq(&self, other: &AsyncError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AsyncError
Auto Trait Implementations§
impl Freeze for AsyncError
impl RefUnwindSafe for AsyncError
impl Send for AsyncError
impl Sync for AsyncError
impl Unpin for AsyncError
impl UnsafeUnpin for AsyncError
impl UnwindSafe for AsyncError
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