pub struct Args<A, V, S>(/* private fields */);Expand description
Address range and values for writing operations.
§Example
use fennec_modbus::protocol::{codec::Encode, function::write_multiple::Args};
assert_eq!(
Args::new(1_u16, [0x000A_u16, 0x0102]).to_bytes(),
[
0x00, 0x01, // starting address
0x00, 0x02, // register count
0x04, // byte count
0x00, 0x0A, // register 1
0x01, 0x02, // register 2
]
);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A, V, S> Freeze for Args<A, V, S>
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,
V: 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