pub enum Response<F: Function> {
Ok(F::Output),
Exception(Exception),
}Expand description
Response Protocol Data Unit.
Variants§
Ok(F::Output)
Successful response.
Exception(Exception)
The connection is healthy, but the response is a Modbus exception.
Implementations§
Trait Implementations§
impl<F: Copy + Function> Copy for Response<F>
Auto Trait Implementations§
impl<F> Freeze for Response<F>
impl<F> RefUnwindSafe for Response<F>
impl<F> Send for Response<F>
impl<F> Sync for Response<F>
impl<F> Unpin for Response<F>
impl<F> UnsafeUnpin for Response<F>
impl<F> UnwindSafe for Response<F>
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