pub struct ReceivedApdu {
pub apdu: Bytes,
pub source_mac: MacAddr,
pub source_network: Option<NpduAddress>,
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).
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 Send for ReceivedApdu
impl Sync for ReceivedApdu
impl Unpin for ReceivedApdu
impl UnsafeUnpin for ReceivedApdu
impl !UnwindSafe 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