pub struct SubnetRef {
pub authority: EntityId,
pub path: TopologySubnetId,
}Expand description
The security target: an authority-qualified topology path. Equal path bits under two authorities are unrelated.
Fields§
The installation/product root this hierarchy belongs to.
path: TopologySubnetIdCompact path inside that authority’s hierarchy. Path 0 is
the authority-local root (whole-installation scope), not an
absent or wildcard value.
Implementations§
Source§impl SubnetRef
impl SubnetRef
Sourcepub fn contains(&self, target: &SubnetRef) -> bool
pub fn contains(&self, target: &SubnetRef) -> bool
true iff self covers target: same authority and
self.path is target.path or an ancestor of it. The path
half is the canonical fixed-width prefix operation
(TopologySubnetId::is_ancestor_or_self_of) whose truth
table — including the path-0 rows — is pinned in
subnet/id.rs.
Trait Implementations§
impl Eq for SubnetRef
impl StructuralPartialEq for SubnetRef
Auto Trait Implementations§
impl Freeze for SubnetRef
impl RefUnwindSafe for SubnetRef
impl Send for SubnetRef
impl Sync for SubnetRef
impl Unpin for SubnetRef
impl UnsafeUnpin for SubnetRef
impl UnwindSafe for SubnetRef
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.