pub struct Request<A> {
pub function_code: u8,
pub args: A,
}Expand description
Request Protocol Data Unit.
Fields§
§function_code: u8Modbus function code.
args: AFunction-dependent arguments that follow the function code.
Implementations§
Trait Implementations§
impl<A: Copy> Copy for Request<A>
Auto Trait Implementations§
impl<A> Freeze for Request<A>where
A: Freeze,
impl<A> RefUnwindSafe for Request<A>where
A: RefUnwindSafe,
impl<A> Send for Request<A>where
A: Send,
impl<A> Sync for Request<A>where
A: Sync,
impl<A> Unpin for Request<A>where
A: Unpin,
impl<A> UnsafeUnpin for Request<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Request<A>where
A: UnwindSafe,
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