pub struct Output {
pub starting_address: u16,
pub count: u16,
}Expand description
Writing output.
§Example
use fennec_modbus::protocol::{codec::Decode, function::write_multiple::Output};
let mut bytes: &[u8] = &[0x00, 0x01, 0x00, 0x02];
let output = Output::decode(&mut bytes).unwrap();
assert_eq!(output.starting_address, 1);
assert_eq!(output.count, 2);Fields§
§starting_address: u16Starting address.
count: u16Count of registers or coils – according to the operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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