pub struct ExceptionResponse {
pub function_code: u8,
pub exception_code: ExceptionCode,
}Expand description
A Modbus exception response (function code with bit 7 set + exception code).
Fields§
§function_code: u8The original function code (without the exception bit).
exception_code: ExceptionCodeThe exception code describing the error.
Implementations§
Trait Implementations§
Source§impl Clone for ExceptionResponse
impl Clone for ExceptionResponse
Source§fn clone(&self) -> ExceptionResponse
fn clone(&self) -> ExceptionResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExceptionResponse
impl Debug for ExceptionResponse
Source§impl Display for ExceptionResponse
impl Display for ExceptionResponse
Source§impl PartialEq for ExceptionResponse
impl PartialEq for ExceptionResponse
impl Copy for ExceptionResponse
impl Eq for ExceptionResponse
impl StructuralPartialEq for ExceptionResponse
Auto Trait Implementations§
impl Freeze for ExceptionResponse
impl RefUnwindSafe for ExceptionResponse
impl Send for ExceptionResponse
impl Sync for ExceptionResponse
impl Unpin for ExceptionResponse
impl UnsafeUnpin for ExceptionResponse
impl UnwindSafe for ExceptionResponse
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