pub struct SubnetRollup {
pub subnet: SubnetId,
pub members: Vec<u64>,
pub is_local: bool,
}Expand description
One row in DeckClient::subnets_with_members’s rollup.
Carries the subnet, the sorted member-node_id set, and a
flag marking the local subnet so renderers don’t need a
second pass.
Fields§
§subnet: SubnetIdSubnet this row represents.
members: Vec<u64>Sorted set of node_ids known to belong to this subnet.
Empty when the local subnet has no peers (the local node
is only included if the caller supplied its node id).
is_local: booltrue when Self::subnet matches the local mesh
node’s subnet.
Trait Implementations§
Source§impl Clone for SubnetRollup
impl Clone for SubnetRollup
Source§fn clone(&self) -> SubnetRollup
fn clone(&self) -> SubnetRollup
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 moreSource§impl Debug for SubnetRollup
impl Debug for SubnetRollup
impl Eq for SubnetRollup
Source§impl PartialEq for SubnetRollup
impl PartialEq for SubnetRollup
Source§fn eq(&self, other: &SubnetRollup) -> bool
fn eq(&self, other: &SubnetRollup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubnetRollup
Auto Trait Implementations§
impl Freeze for SubnetRollup
impl RefUnwindSafe for SubnetRollup
impl Send for SubnetRollup
impl Sync for SubnetRollup
impl Unpin for SubnetRollup
impl UnsafeUnpin for SubnetRollup
impl UnwindSafe for SubnetRollup
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> 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.