Enum tokio_modbus::Exception
source · #[repr(u8)]pub enum Exception {
IllegalFunction = 1,
IllegalDataAddress = 2,
IllegalDataValue = 3,
ServerDeviceFailure = 4,
Acknowledge = 5,
ServerDeviceBusy = 6,
MemoryParityError = 8,
GatewayPathUnavailable = 10,
GatewayTargetDevice = 11,
}
Expand description
A server (slave) exception.
Variants§
IllegalFunction = 1
IllegalDataAddress = 2
IllegalDataValue = 3
ServerDeviceFailure = 4
Acknowledge = 5
ServerDeviceBusy = 6
MemoryParityError = 8
GatewayTargetDevice = 11
Trait Implementations§
source§impl Error for Exception
impl Error for Exception
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
source§impl PartialEq for Exception
impl PartialEq for Exception
impl Copy for Exception
impl Eq for Exception
impl StructuralPartialEq for Exception
Auto Trait Implementations§
impl RefUnwindSafe for Exception
impl Send for Exception
impl Sync for Exception
impl Unpin for Exception
impl UnwindSafe for Exception
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