#[non_exhaustive]pub enum NetworkReport {
IAmRouterToNetwork(Vec<u16>),
NetworkNumberIs {
network: u16,
configured: bool,
},
RejectMessageToNetwork(RejectMessageToNetwork),
}Expand description
A network message that tells a non-routing node something about the
internetwork, read from a ReceivedNetworkControl.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IAmRouterToNetwork(Vec<u16>)
I-Am-Router-To-Network (Clause 6.4.2): the sender routes to these networks, in the order it listed them.
NetworkNumberIs
Network-Number-Is (Clause 6.4.20): the number of the local network, and whether the sender had it configured rather than learned.
Fields
RejectMessageToNetwork(RejectMessageToNetwork)
Reject-Message-To-Network (Clause 6.4.4): a router refused a message this node sent, for the reason and network it names.
Implementations§
Source§impl NetworkReport
impl NetworkReport
Sourcepub fn parse_npdu(npdu: &Npdu, link_layer_group: bool) -> Option<Self>
pub fn parse_npdu(npdu: &Npdu, link_layer_group: bool) -> Option<Self>
Parse an overheard NPDU using its logical broadcast/unicast delivery, without manufacturing transport provenance or starting a network layer.
Trait Implementations§
Source§impl Clone for NetworkReport
impl Clone for NetworkReport
Source§impl Debug for NetworkReport
impl Debug for NetworkReport
impl Eq for NetworkReport
Source§impl PartialEq for NetworkReport
impl PartialEq for NetworkReport
impl StructuralPartialEq for NetworkReport
Auto Trait Implementations§
impl Freeze for NetworkReport
impl RefUnwindSafe for NetworkReport
impl Send for NetworkReport
impl Sync for NetworkReport
impl Unpin for NetworkReport
impl UnsafeUnpin for NetworkReport
impl UnwindSafe for NetworkReport
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