pub struct ProbeSnapshot { /* private fields */ }Expand description
The probe snapshot, read and identified anew (spec 043, 3.7.2). Loading it opens no journal, so every refusal here precedes any spend.
Implementations§
Source§impl ProbeSnapshot
impl ProbeSnapshot
Sourcepub fn load(
probe: &Probe,
case_snapshots: &[SnapshotId],
) -> Result<Self, LiveError>
pub fn load( probe: &Probe, case_snapshots: &[SnapshotId], ) -> Result<Self, LiveError>
Read probe.snapshot within the snapshot parse bound.
Sourcepub fn from_bytes(
probe: &Probe,
bytes: &[u8],
case_snapshots: &[SnapshotId],
) -> Result<Self, LiveError>
pub fn from_bytes( probe: &Probe, bytes: &[u8], case_snapshots: &[SnapshotId], ) -> Result<Self, LiveError>
Refused probe-snapshot when the recomputed digest is not the
declared one or equals any case snapshot’s.
pub fn id(&self) -> &SnapshotId
Trait Implementations§
Source§impl Clone for ProbeSnapshot
impl Clone for ProbeSnapshot
Auto Trait Implementations§
impl Freeze for ProbeSnapshot
impl RefUnwindSafe for ProbeSnapshot
impl Send for ProbeSnapshot
impl Sync for ProbeSnapshot
impl Unpin for ProbeSnapshot
impl UnsafeUnpin for ProbeSnapshot
impl UnwindSafe for ProbeSnapshot
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