pub struct ContiguousAssemblyProof { /* private fields */ }Expand description
Validated aggregate evidence that a committed file was assembled contiguously from CRC-verified articles.
Implementations§
Source§impl ContiguousAssemblyProof
impl ContiguousAssemblyProof
Sourcepub fn try_new(
expected_length: u64,
committed_length: u64,
covered_length: u64,
has_gaps: bool,
has_overlaps: bool,
has_mismatched_duplicates: bool,
all_parts_crc_verified: bool,
) -> Result<Self, ContiguousAssemblyProofError>
pub fn try_new( expected_length: u64, committed_length: u64, covered_length: u64, has_gaps: bool, has_overlaps: bool, has_mismatched_duplicates: bool, all_parts_crc_verified: bool, ) -> Result<Self, ContiguousAssemblyProofError>
Validate and record an aggregate contiguous-assembly claim.
All supplied lengths must agree, coverage must be gap-free and non-overlapping, duplicate articles must agree, and every article CRC must already have been verified.
Sourcepub fn expected_length(&self) -> u64
pub fn expected_length(&self) -> u64
The length expected from PAR2/file metadata.
Sourcepub fn committed_length(&self) -> u64
pub fn committed_length(&self) -> u64
The byte count committed to the assembled output.
Sourcepub fn covered_length(&self) -> u64
pub fn covered_length(&self) -> u64
The byte count covered by the verified input articles.
Trait Implementations§
Source§impl Clone for ContiguousAssemblyProof
impl Clone for ContiguousAssemblyProof
Source§fn clone(&self) -> ContiguousAssemblyProof
fn clone(&self) -> ContiguousAssemblyProof
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 ContiguousAssemblyProof
impl Debug for ContiguousAssemblyProof
impl Eq for ContiguousAssemblyProof
Source§impl PartialEq for ContiguousAssemblyProof
impl PartialEq for ContiguousAssemblyProof
impl StructuralPartialEq for ContiguousAssemblyProof
Auto Trait Implementations§
impl Freeze for ContiguousAssemblyProof
impl RefUnwindSafe for ContiguousAssemblyProof
impl Send for ContiguousAssemblyProof
impl Sync for ContiguousAssemblyProof
impl Unpin for ContiguousAssemblyProof
impl UnsafeUnpin for ContiguousAssemblyProof
impl UnwindSafe for ContiguousAssemblyProof
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more