pub struct ClusterState {Show 17 fields
pub version: u32,
pub peer: Option<Authority>,
pub cluster_id: String,
pub name: String,
pub owner_key: PublicKey,
pub owner_transitions: Vec<SignedOwnerTransition>,
pub revision: u64,
pub previous: Option<Digest>,
pub issued_at: u64,
pub expires_at: u64,
pub nodes: BTreeMap<String, NodeMember>,
pub retired_nodes: BTreeSet<String>,
pub retired_keys: BTreeSet<PublicKey>,
pub retired_relay_grants: BTreeSet<String>,
pub retired_admin_grants: BTreeSet<String>,
pub release_channel: ReleaseChannel,
pub policy: Policy,
}Fields§
§version: u32§peer: Option<Authority>§cluster_id: String§name: String§owner_key: PublicKey§owner_transitions: Vec<SignedOwnerTransition>§revision: u64§previous: Option<Digest>§issued_at: u64§expires_at: u64§nodes: BTreeMap<String, NodeMember>§retired_nodes: BTreeSet<String>§retired_keys: BTreeSet<PublicKey>§retired_relay_grants: BTreeSet<String>§retired_admin_grants: BTreeSet<String>§release_channel: ReleaseChannelOmit stable to preserve pre-channel signatures and checkpoint digests.
policy: PolicyTrait Implementations§
Source§impl Clone for ClusterState
impl Clone for ClusterState
Source§impl Debug for ClusterState
impl Debug for ClusterState
Source§impl<'de> Deserialize<'de> for ClusterState
impl<'de> Deserialize<'de> for ClusterState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ClusterState
impl Freeze for ClusterStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SignedOwnerTransition>: Freeze,
*const LeafNode<String, NodeMember> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, NodeMember)>>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const LeafNode<[u8; 32], SetValZST> is !null: Freeze,
PhantomData<Box<([u8; 32], SetValZST)>>: Freeze,
PhantomData<Rule>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
*const LeafNode<String, RelayGrant> is !null: Freeze,
PhantomData<Box<(String, RelayGrant)>>: Freeze,
*const LeafNode<String, AdminGrant> is !null: Freeze,
PhantomData<Box<(String, AdminGrant)>>: Freeze,
*const LeafNode<String, GroupAdminGrant> is !null: Freeze,
PhantomData<Box<(String, GroupAdminGrant)>>: Freeze,
impl Move for ClusterState
impl RefUnwindSafe for ClusterState
impl Send for ClusterStatewhere
RawVecInner: Send,
NodeRef<Owned, String, NodeMember, LeafOrInternal>: Send,
BoxRaw<(String, NodeMember)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
NodeRef<Owned, [u8; 32], SetValZST, LeafOrInternal>: Send,
BoxRaw<([u8; 32], SetValZST)>: Send,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<String>)>: Send,
NodeRef<Owned, String, RelayGrant, LeafOrInternal>: Send,
BoxRaw<(String, RelayGrant)>: Send,
NodeRef<Owned, String, AdminGrant, LeafOrInternal>: Send,
BoxRaw<(String, AdminGrant)>: Send,
NodeRef<Owned, String, GroupAdminGrant, LeafOrInternal>: Send,
BoxRaw<(String, GroupAdminGrant)>: Send,
impl Sync for ClusterStatewhere
RawVecInner: Sync,
NodeRef<Owned, String, NodeMember, LeafOrInternal>: Sync,
BoxRaw<(String, NodeMember)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, [u8; 32], SetValZST, LeafOrInternal>: Sync,
BoxRaw<([u8; 32], SetValZST)>: Sync,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
NodeRef<Owned, String, RelayGrant, LeafOrInternal>: Sync,
BoxRaw<(String, RelayGrant)>: Sync,
NodeRef<Owned, String, AdminGrant, LeafOrInternal>: Sync,
BoxRaw<(String, AdminGrant)>: Sync,
NodeRef<Owned, String, GroupAdminGrant, LeafOrInternal>: Sync,
BoxRaw<(String, GroupAdminGrant)>: Sync,
impl Unpin for ClusterStatewhere
*const u8 is !null: Unpin,
*const LeafNode<String, NodeMember> is !null: Unpin,
Box<(String, NodeMember)>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
*const LeafNode<[u8; 32], SetValZST> is !null: Unpin,
Box<([u8; 32], SetValZST)>: Unpin,
*const LeafNode<String, Vec<String>> is !null: Unpin,
Box<(String, Vec<String>)>: Unpin,
*const LeafNode<String, RelayGrant> is !null: Unpin,
Box<(String, RelayGrant)>: Unpin,
*const LeafNode<String, AdminGrant> is !null: Unpin,
Box<(String, AdminGrant)>: Unpin,
*const LeafNode<String, GroupAdminGrant> is !null: Unpin,
Box<(String, GroupAdminGrant)>: Unpin,
impl UnsafeUnpin for ClusterStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SignedOwnerTransition>: UnsafeUnpin,
*const LeafNode<String, NodeMember> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, NodeMember)>>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const LeafNode<[u8; 32], SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<([u8; 32], SetValZST)>>: UnsafeUnpin,
PhantomData<Rule>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
*const LeafNode<String, RelayGrant> is !null: UnsafeUnpin,
PhantomData<Box<(String, RelayGrant)>>: UnsafeUnpin,
*const LeafNode<String, AdminGrant> is !null: UnsafeUnpin,
PhantomData<Box<(String, AdminGrant)>>: UnsafeUnpin,
*const LeafNode<String, GroupAdminGrant> is !null: UnsafeUnpin,
PhantomData<Box<(String, GroupAdminGrant)>>: UnsafeUnpin,
impl UnwindSafe for ClusterStatewhere
RawVecInner: UnwindSafe,
BTreeMap<String, NodeMember>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<[u8; 32], SetValZST>: UnwindSafe,
BTreeMap<String, Vec<String>>: UnwindSafe,
BTreeMap<String, RelayGrant>: UnwindSafe,
BTreeMap<String, AdminGrant>: UnwindSafe,
BTreeMap<String, GroupAdminGrant>: UnwindSafe,
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