pub struct ReceivedApdu {
pub apdu: Bytes,
pub source_mac: MacAddr,
pub source_network: Option<NpduAddress>,
pub link_layer_group: bool,
pub is_group: bool,
pub data_attributes: Vec<DataAttribute>,
pub reply_tx: Option<Sender<Bytes>>,
}Expand description
A received APDU with source addressing information.
Fields§
§apdu: BytesRaw APDU bytes.
source_mac: MacAddrSource MAC address in transport-native format.
source_network: Option<NpduAddress>Source network address if the APDU was routed (NPDU had source field).
link_layer_group: boolWhether the NPDU arrived through a data-link multicast or broadcast.
This preserves raw data-link provenance independently of Self::is_group.
is_group: boolWhether the APDU’s effective BACnet destination was multicast or broadcast.
A specific DNET/DADR remains a unicast even when a router used a group data-link destination to reach that remote device.
data_attributes: Vec<DataAttribute>Data-link attributes associated with the NPDU, if the transport supplied any.
reply_tx: Option<Sender<Bytes>>Optional reply channel for MS/TP DataExpectingReply flows. The application layer can send NPDU-wrapped reply bytes through this channel.
Trait Implementations§
Source§impl Clone for ReceivedApdu
impl Clone for ReceivedApdu
Auto Trait Implementations§
impl !Freeze for ReceivedApdu
impl !RefUnwindSafe for ReceivedApdu
impl !UnwindSafe for ReceivedApdu
impl Send for ReceivedApdu
impl Sync for ReceivedApdu
impl Unpin for ReceivedApdu
impl UnsafeUnpin for ReceivedApdu
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