pub enum Exception {
IllegalCode,
IllegalAddress,
IllegalDataValue,
ServerFailure,
Acknowledge,
ServerBusy,
GatewayUnavail,
BadDevice,
IOError(Error),
FailedRead,
}Expand description
Exception codes explaining possible causes of failure
Variants§
IllegalCode
The function code is unknown by the server
IllegalAddress
Dependant on the request
IllegalDataValue
Dependant on the request
ServerFailure
The server failed during the exception
Acknowledge
The server accepted the request, but requires a long time to execute
ServerBusy
The server was unable to accept request
Gateway paths not available
BadDevice
The targeted device failed to respond
IOError(Error)
std::io::Error
FailedRead
Failed to read the necessary bytes for the full transmission or the bytes read are not not in accordance to the Modbus Protocol
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Exception
impl !RefUnwindSafe for Exception
impl Send for Exception
impl Sync for Exception
impl Unpin for Exception
impl UnsafeUnpin 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