Enum sunspec::ReadPointError
source · pub enum ReadPointError {
IO(Error),
OutOfBounds,
DecodeError(DecodeError),
MissingMandatoryValue,
}Expand description
This error is returned if there was an error while reading data from a point.
Variants§
IO(Error)
I/O error occured. Please note that all errors returned by tokio-modbus
are stored inside this I/O error.
OutOfBounds
The point could not be loaded because the given data was not large enough.
DecodeError(DecodeError)
The decoding of the point data failed.
MissingMandatoryValue
The point is mandatory but value is missing.
Trait Implementations§
source§impl Debug for ReadPointError
impl Debug for ReadPointError
source§impl Display for ReadPointError
impl Display for ReadPointError
source§impl Error for ReadPointError
impl Error for ReadPointError
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<DecodeError> for ReadPointError
impl From<DecodeError> for ReadPointError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ReadPointError
impl From<Error> for ReadPointError
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 ReadPointError
impl Send for ReadPointError
impl Sync for ReadPointError
impl Unpin for ReadPointError
impl !UnwindSafe for ReadPointError
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