pub struct CheckpointCandidate {
pub checkpoint_bytes: CanonicalBytes,
pub through_step_seq: WireU64,
pub covered_head: Digest,
pub state_digest: Digest,
pub ack_token: CheckpointAckToken,
}Expand description
§12.3 · what kernel.checkpoint_candidate() hands the host.
Exactly the five values of the spec’s arrow, and nothing that would let a host reconstruct the
checkpoint itself: checkpoint_bytes is opaque storage, through_step_seq/covered_head are
the install precondition, state_digest is what an installed blob is audited against, and
ack_token is the maintenance handle that closes the loop.
Fields§
§checkpoint_bytes: CanonicalBytes§through_step_seq: WireU64§covered_head: Digest§state_digest: Digest§ack_token: CheckpointAckTokenImplementations§
Source§impl CheckpointCandidate
impl CheckpointCandidate
Sourcepub fn boundary(&self) -> CheckpointBoundary
pub fn boundary(&self) -> CheckpointBoundary
The boundary this candidate would let an ack reclaim (§12.3 rule 6).
Sourcepub fn decode(&self) -> Result<KernelCheckpoint, CheckpointError>
pub fn decode(&self) -> Result<KernelCheckpoint, CheckpointError>
Decode the blob back into a verified checkpoint — what an install path does before it writes anything.
Trait Implementations§
Source§impl Clone for CheckpointCandidate
impl Clone for CheckpointCandidate
Source§fn clone(&self) -> CheckpointCandidate
fn clone(&self) -> CheckpointCandidate
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 CheckpointCandidate
impl Debug for CheckpointCandidate
Source§impl PartialEq for CheckpointCandidate
impl PartialEq for CheckpointCandidate
impl StructuralPartialEq for CheckpointCandidate
Auto Trait Implementations§
impl Freeze for CheckpointCandidate
impl RefUnwindSafe for CheckpointCandidate
impl Send for CheckpointCandidate
impl Sync for CheckpointCandidate
impl Unpin for CheckpointCandidate
impl UnsafeUnpin for CheckpointCandidate
impl UnwindSafe for CheckpointCandidate
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