pub struct CanonicalInput {
pub step_seq: WireU64,
pub record_digest: Digest,
pub input: NormalizedInput,
}Expand description
One accepted input inside a checkpoint’s bounded tail.
It carries the normalised input (so the tail can be replayed) and the digest of the record that input produced (so the replay can be verified against the journal it came from). Neither alone is enough: digests without inputs make a checkpoint auditable but useless, and inputs without digests make a restore that silently disagrees with the journal possible.
Fields§
§step_seq: WireU64§record_digest: Digest§input: NormalizedInputImplementations§
Source§impl CanonicalInput
impl CanonicalInput
Sourcepub fn from_record(record: &KernelRecord) -> Result<Self, CheckpointError>
pub fn from_record(record: &KernelRecord) -> Result<Self, CheckpointError>
Project one durable record into its tail entry.
Trait Implementations§
Source§impl Clone for CanonicalInput
impl Clone for CanonicalInput
Source§fn clone(&self) -> CanonicalInput
fn clone(&self) -> CanonicalInput
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 CanonicalInput
impl Debug for CanonicalInput
Source§impl<'de> Deserialize<'de> for CanonicalInput
impl<'de> Deserialize<'de> for CanonicalInput
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
Source§impl PartialEq for CanonicalInput
impl PartialEq for CanonicalInput
Source§impl Serialize for CanonicalInput
impl Serialize for CanonicalInput
impl StructuralPartialEq for CanonicalInput
Auto Trait Implementations§
impl Freeze for CanonicalInput
impl RefUnwindSafe for CanonicalInput
impl Send for CanonicalInput
impl Sync for CanonicalInput
impl Unpin for CanonicalInput
impl UnsafeUnpin for CanonicalInput
impl UnwindSafe for CanonicalInput
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