pub struct RtuFrameMeta {
pub unit_id: u8,
pub pdu_length: usize,
pub crc: u16,
}Expand description
RTU framing metadata (moved here from modbus-types per review finding #6).
Fields§
§unit_id: u8Unit/slave address.
pdu_length: usizePDU byte length (excluding unit ID and CRC).
crc: u16CRC-16 value from the frame.
Trait Implementations§
Source§impl Clone for RtuFrameMeta
impl Clone for RtuFrameMeta
Source§fn clone(&self) -> RtuFrameMeta
fn clone(&self) -> RtuFrameMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RtuFrameMeta
Auto Trait Implementations§
impl Freeze for RtuFrameMeta
impl RefUnwindSafe for RtuFrameMeta
impl Send for RtuFrameMeta
impl Sync for RtuFrameMeta
impl Unpin for RtuFrameMeta
impl UnsafeUnpin for RtuFrameMeta
impl UnwindSafe for RtuFrameMeta
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