pub struct AuthoritySet {
pub state_id: u64,
pub level: AuthorityLevel,
pub authorities: HashSet<NodeId>,
pub delegations: Vec<(NodeId, NodeId)>,
}Expand description
Authority set - who has authority over a state
Fields§
§state_id: u64The state this authority set governs
level: AuthorityLevelAuthority level
Nodes with authority (empty for Open level)
delegations: Vec<(NodeId, NodeId)>Delegation chain (who granted authority to whom)
Implementations§
Source§impl AuthoritySet
impl AuthoritySet
Trait Implementations§
Source§impl Clone for AuthoritySet
impl Clone for AuthoritySet
Source§fn clone(&self) -> AuthoritySet
fn clone(&self) -> AuthoritySet
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthoritySet
impl RefUnwindSafe for AuthoritySet
impl Send for AuthoritySet
impl Sync for AuthoritySet
impl Unpin for AuthoritySet
impl UnsafeUnpin for AuthoritySet
impl UnwindSafe for AuthoritySet
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