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 SignedState
impl Move for SignedState
impl RefUnwindSafe for SignedState
impl Send for SignedState
impl Sync for SignedState
impl Unpin for SignedState
impl UnsafeUnpin for SignedState
impl UnwindSafe for SignedState
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