pub struct Args<A, V, S>(/* private fields */);Expand description
Address range for reading operations.
§Example
use fennec_modbus::protocol::{
codec::Encode,
function::{read_multiple::Args, size_argument},
};
// Read holding registers 108–110 (Modbus spec §6.3 example).
assert_eq!(
Args::<_, [u16; 3], size_argument::Words>::new(0x006B_u16).to_bytes(),
[
0x00, 0x6B, // starting address
0x00, 0x03, // quantity of registers
]
);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A, V, S> Freeze for Args<A, V, S>where
A: Freeze,
impl<A, V, S> RefUnwindSafe for Args<A, V, S>
impl<A, V, S> Send for Args<A, V, S>
impl<A, V, S> Sync for Args<A, V, S>
impl<A, V, S> Unpin for Args<A, V, S>
impl<A, V, S> UnsafeUnpin for Args<A, V, S>where
A: UnsafeUnpin,
impl<A, V, S> UnwindSafe for Args<A, V, S>
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