pub struct SignedState {
pub state: ClusterState,
pub signature: Vec<u8>,
}Fields§
§state: ClusterState§signature: Vec<u8>Implementations§
Source§impl SignedState
impl SignedState
Sourcepub fn verified_checkpoint(&self, anchor: &TrustAnchor) -> Result<Checkpoint>
pub fn verified_checkpoint(&self, anchor: &TrustAnchor) -> Result<Checkpoint>
Verify one record, without authorizing it or establishing history continuity. Apply through VerifiedState before changing live authority.
pub fn encode(&self) -> Result<Vec<u8>>
pub fn decode(bytes: &[u8]) -> Result<Self>
Trait Implementations§
Source§impl Clone for SignedState
impl Clone for SignedState
Source§impl Debug for SignedState
impl Debug for SignedState
Source§impl<'de> Deserialize<'de> for SignedState
impl<'de> Deserialize<'de> for SignedState
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 SignedState
impl Freeze for SignedStatewhere
*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 SignedState
impl RefUnwindSafe for SignedState
impl Send for SignedStatewhere
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 SignedStatewhere
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 SignedStatewhere
*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 SignedStatewhere
*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 SignedStatewhere
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