pub enum Error {
AddressOutOfRange(u8),
PasswordOutOfRange(u16),
AutoScrollTimeOutOfRange(u8),
BacklitTimeOutOfRange(u8),
InvalidBaudRate,
OutOfRange,
InvalidValue,
WordsCountError,
}Expand description
Represents errors that can occur within the SDM72 protocol logic.
Variants§
AddressOutOfRange(u8)
The provided Modbus address is outside the valid range.
PasswordOutOfRange(u16)
The provided password is outside the valid range.
AutoScrollTimeOutOfRange(u8)
The provided auto scroll time is outside the valid range.
BacklitTimeOutOfRange(u8)
The provided backlight time is outside the valid range.
InvalidBaudRate
The provided baud rate is not supported by the device.
OutOfRange
A generic error for a value that is outside its permissible range.
InvalidValue
An unexpected or invalid value was received from the device.
WordsCountError
The number of words received from the device is incorrect for the requested operation.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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