pub enum Exception {
IllegalFunction,
IllegalDataAddress,
IllegalDataValue,
SlaveDeviceFailure,
Acknowledge,
}Expand description
Exception types
Variants§
IllegalFunction
Code 1
Function code received in the query is not recognized or allowed by server
IllegalDataAddress
Code 2
Data address of some or all the required entities are not allowed or do not exist in server
IllegalDataValue
Code 3
Value is not accepted by server
SlaveDeviceFailure
Code 5
Unrecoverable error occurred while server was attempting to perform requested action
Acknowledge
Code 6
Server has accepted request and is processing it, but a long duration of time is required. This response is returned to prevent a timeout error from occurring in the client. client can next issue a Poll Program Complete message to determine whether processing is completed
Trait Implementations§
Source§impl Ord for Exception
impl Ord for Exception
Source§impl PartialOrd for Exception
impl PartialOrd for Exception
impl Eq for Exception
impl StructuralPartialEq for Exception
Auto Trait Implementations§
impl Freeze for Exception
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