pub struct ReceivedNetworkControl {
pub npdu: Npdu,
pub source_mac: MacAddr,
pub link_layer_group: bool,
pub data_attributes: Vec<DataAttribute>,
pub ingress_sequence: u64,
}Expand description
A decoded network-layer control message received from a transport peer.
Non-router users opt in to this stream before NetworkLayer::start.
Without that opt-in, network messages retain their historical discard/log
behavior.
Fields§
§npdu: NpduDecoded NPDU, including network-message type and typed-address fields.
source_mac: MacAddrImmediate transport peer that sent the message.
link_layer_group: boolWhether the data-link delivery was multicast or broadcast.
data_attributes: Vec<DataAttribute>Data-link attributes supplied by the transport.
ingress_sequence: u64Monotonic decoded-ingress sequence assigned before channel delivery.
A consumer can compare this with NetworkLayer::network_control_ingress_sequence
when activating state so controls already queued at that point cannot
be mistaken for feedback about the new state.
Trait Implementations§
Source§impl Clone for ReceivedNetworkControl
impl Clone for ReceivedNetworkControl
Source§fn clone(&self) -> ReceivedNetworkControl
fn clone(&self) -> ReceivedNetworkControl
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 moreAuto Trait Implementations§
impl !Freeze for ReceivedNetworkControl
impl RefUnwindSafe for ReceivedNetworkControl
impl Send for ReceivedNetworkControl
impl Sync for ReceivedNetworkControl
impl Unpin for ReceivedNetworkControl
impl UnsafeUnpin for ReceivedNetworkControl
impl UnwindSafe for ReceivedNetworkControl
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