Struct tokio_modbus::ExceptionResponse
source · pub struct ExceptionResponse {
pub function: FunctionCode,
pub exception: Exception,
}
Expand description
A server (slave) exception response.
Fields§
§function: FunctionCode
§exception: Exception
Trait Implementations§
source§impl Clone for ExceptionResponse
impl Clone for ExceptionResponse
source§fn clone(&self) -> ExceptionResponse
fn clone(&self) -> ExceptionResponse
Returns a copy 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 Error for ExceptionResponse
impl Error for ExceptionResponse
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 From<ExceptionResponse> for Bytes
impl From<ExceptionResponse> for Bytes
source§fn from(ex: ExceptionResponse) -> Bytes
fn from(ex: ExceptionResponse) -> Bytes
Converts to this type from the input type.
source§impl PartialEq for ExceptionResponse
impl PartialEq for ExceptionResponse
source§fn eq(&self, other: &ExceptionResponse) -> bool
fn eq(&self, other: &ExceptionResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Bytes> for ExceptionResponse
impl TryFrom<Bytes> 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 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)