pub enum AdditionalAddress {
MbapHeader(MbapHeader),
SlaveAddress(SlaveAddress),
}Expand description
Additional address field for Modbus RTU/TCP messages.
Variants§
MbapHeader(MbapHeader)
The MBAP header for Modbus TCP messages. This includes Transaction ID, Protocol ID, Length, and Unit ID.
SlaveAddress(SlaveAddress)
The slave address for Modbus RTU/ASCII messages.
Trait Implementations§
Source§impl Clone for AdditionalAddress
impl Clone for AdditionalAddress
Source§fn clone(&self) -> AdditionalAddress
fn clone(&self) -> AdditionalAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdditionalAddress
impl Debug for AdditionalAddress
impl Copy for AdditionalAddress
Auto Trait Implementations§
impl Freeze for AdditionalAddress
impl RefUnwindSafe for AdditionalAddress
impl Send for AdditionalAddress
impl Sync for AdditionalAddress
impl Unpin for AdditionalAddress
impl UnsafeUnpin for AdditionalAddress
impl UnwindSafe for AdditionalAddress
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