pub struct ControlAuthContext {
pub port_idx: usize,
pub port_network: u16,
pub source_mac: MacAddr,
pub provenance: TransportProvenance,
pub trust: ControlTrust,
pub message_type: u8,
pub vendor_id: Option<u16>,
pub source_net: Option<u16>,
pub dest_net: Option<u16>,
pub target_nets: Vec<u16>,
pub targets_omitted: bool,
}Expand description
Immutable admission facts for one protected control. Claims only.
Fields§
§port_idx: usizeIndex of the router port the control arrived on.
port_network: u16Network number of that port.
source_mac: MacAddrData-link source address of the sending node.
provenance: TransportProvenanceHow the transport learned of the frame’s origin (direct peer, hub, relayed).
trust: ControlTrustChannel-level trust derived from provenance; says nothing about the leaf sender’s
identity.
message_type: u8Network-layer message type code of the control, as received.
vendor_id: Option<u16>Vendor ID from a proprietary network message, if present.
source_net: Option<u16>Source network number claimed in the NPDU, if any.
dest_net: Option<u16>Destination network number claimed in the NPDU, if any.
target_nets: Vec<u16>Network numbers the control refers to, after validation.
targets_omitted: boolTrue when the control omitted its network list, meaning every network served via the sender.
Trait Implementations§
Source§impl Clone for ControlAuthContext
impl Clone for ControlAuthContext
Source§impl Debug for ControlAuthContext
impl Debug for ControlAuthContext
impl Eq for ControlAuthContext
Source§impl PartialEq for ControlAuthContext
impl PartialEq for ControlAuthContext
impl StructuralPartialEq for ControlAuthContext
Auto Trait Implementations§
impl Freeze for ControlAuthContext
impl RefUnwindSafe for ControlAuthContext
impl Send for ControlAuthContext
impl Sync for ControlAuthContext
impl Unpin for ControlAuthContext
impl UnsafeUnpin for ControlAuthContext
impl UnwindSafe for ControlAuthContext
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