pub struct SegmentCheckpoint {
pub alg: DigestAlg,
pub segment_index: u32,
pub next_frame_index: u32,
pub state: SerializedState,
}Fields§
§alg: DigestAlg§segment_index: u32§next_frame_index: u32§state: SerializedStateImplementations§
Source§impl SegmentCheckpoint
impl SegmentCheckpoint
pub fn from_state( alg: DigestAlg, segment_index: u32, next_frame_index: u32, state: &DigestState, ) -> Self
pub fn resume_from_checkpoint(self) -> Result<DigestState, DigestError>
Trait Implementations§
Source§impl Checkpointable for SegmentCheckpoint
impl Checkpointable for SegmentCheckpoint
Source§impl Clone for SegmentCheckpoint
impl Clone for SegmentCheckpoint
Source§fn clone(&self) -> SegmentCheckpoint
fn clone(&self) -> SegmentCheckpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SegmentCheckpoint
impl RefUnwindSafe for SegmentCheckpoint
impl Send for SegmentCheckpoint
impl Sync for SegmentCheckpoint
impl Unpin for SegmentCheckpoint
impl UnsafeUnpin for SegmentCheckpoint
impl UnwindSafe for SegmentCheckpoint
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