Enum sunspec::ReadModelError
source · pub enum ReadModelError {
IO(Error),
Point(ReadPointError),
}Expand description
This error is returned if there was an error loading the requested model.
Variants§
IO(Error)
I/O error occured. Please note that all errors returned by tokio-modbus
are stored inside this I/O error.
Point(ReadPointError)
The reading of a point within the model failed. Please see the
encapsulated ReadPointError for further details.
Trait Implementations§
source§impl Debug for ReadModelError
impl Debug for ReadModelError
source§impl Display for ReadModelError
impl Display for ReadModelError
source§impl Error for ReadModelError
impl Error for ReadModelError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ReadModelError
impl From<Error> for ReadModelError
source§impl From<ReadPointError> for ReadModelError
impl From<ReadPointError> for ReadModelError
source§fn from(source: ReadPointError) -> Self
fn from(source: ReadPointError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadModelError
impl Send for ReadModelError
impl Sync for ReadModelError
impl Unpin for ReadModelError
impl !UnwindSafe for ReadModelError
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