pub struct Npdu {
pub is_network_message: bool,
pub expecting_reply: bool,
pub priority: NetworkPriority,
pub destination: Option<NpduAddress>,
pub source: Option<NpduAddress>,
pub hop_count: u8,
pub message_type: Option<u8>,
pub vendor_id: Option<u16>,
pub payload: Bytes,
}Expand description
Decoded Network Protocol Data Unit (Clause 6.2).
Fields§
§is_network_message: boolWhether this is a network-layer message (vs application-layer APDU).
expecting_reply: boolWhether the sender expects a reply.
priority: NetworkPriorityMessage priority.
destination: Option<NpduAddress>Remote destination address, if routed.
source: Option<NpduAddress>Originating source address (populated by routers).
hop_count: u8Remaining hop count for routed messages (0-255).
message_type: Option<u8>Network message type (when is_network_message is true).
vendor_id: Option<u16>Vendor ID for proprietary network messages (message_type >= 0x80).
payload: BytesPayload: either APDU bytes or network message data.
Trait Implementations§
impl Eq for Npdu
impl StructuralPartialEq for Npdu
Auto Trait Implementations§
impl !Freeze for Npdu
impl RefUnwindSafe for Npdu
impl Send for Npdu
impl Sync for Npdu
impl Unpin for Npdu
impl UnsafeUnpin for Npdu
impl UnwindSafe for Npdu
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