pub struct AttestationBuilder { /* private fields */ }Expand description
Accumulates an Attestation one frame at a time.
Feed it the framebuffer after each run_frame; it maintains the rolling hash
and emits a checkpoint every ATTESTATION_CHECKPOINT_INTERVAL frames.
Implementations§
Source§impl AttestationBuilder
impl AttestationBuilder
Sourcepub fn push_frame(&mut self, input: FrameInput, framebuffer: &[u8])
pub fn push_frame(&mut self, input: FrameInput, framebuffer: &[u8])
Fold in one frame: the input applied, then the video it produced.
Sourcepub const fn frame_count(&self) -> u32
pub const fn frame_count(&self) -> u32
Frames folded in so far.
Sourcepub const fn current_hash(&self) -> u64
pub const fn current_hash(&self) -> u64
The rolling hash as it stands.
Sourcepub fn finish(self) -> Attestation
pub fn finish(self) -> Attestation
Finish and produce the attestation.
Trait Implementations§
Source§impl Clone for AttestationBuilder
impl Clone for AttestationBuilder
Source§fn clone(&self) -> AttestationBuilder
fn clone(&self) -> AttestationBuilder
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 moreSource§impl Debug for AttestationBuilder
impl Debug for AttestationBuilder
Auto Trait Implementations§
impl Freeze for AttestationBuilder
impl RefUnwindSafe for AttestationBuilder
impl Send for AttestationBuilder
impl Sync for AttestationBuilder
impl Unpin for AttestationBuilder
impl UnsafeUnpin for AttestationBuilder
impl UnwindSafe for AttestationBuilder
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