pub enum FeedDisposition {
Verified,
Buffered,
Duplicate,
MetadataPending,
UnknownFile,
OutOfRange,
BudgetExhausted,
ConflictingOverlap,
NeedsSettleRead,
}Expand description
High-level disposition for a call to VerificationSession::feed_range.
Variants§
Verified
One or more slices were verified immediately or after completing a buffer.
Buffered
Boundary data was retained while waiting for the requested settle reads.
Duplicate
The range only repeated bytes already retained or verified.
MetadataPending
PAR2 metadata or slice checksums have not arrived yet.
UnknownFile
The supplied file ID is not part of the currently known PAR2 set.
OutOfRange
The supplied byte range is outside the declared file length.
BudgetExhausted
Retaining a boundary range would exceed the shared memory budget.
ConflictingOverlap
A previously buffered byte and this feed disagree.
NeedsSettleRead
A settled slice was supplied only partially, so its identity cannot be checked without reading the complete slice again.
Trait Implementations§
Source§impl Clone for FeedDisposition
impl Clone for FeedDisposition
Source§fn clone(&self) -> FeedDisposition
fn clone(&self) -> FeedDisposition
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 moreimpl Copy for FeedDisposition
Source§impl Debug for FeedDisposition
impl Debug for FeedDisposition
impl Eq for FeedDisposition
Source§impl PartialEq for FeedDisposition
impl PartialEq for FeedDisposition
impl StructuralPartialEq for FeedDisposition
Auto Trait Implementations§
impl Freeze for FeedDisposition
impl RefUnwindSafe for FeedDisposition
impl Send for FeedDisposition
impl Sync for FeedDisposition
impl Unpin for FeedDisposition
impl UnsafeUnpin for FeedDisposition
impl UnwindSafe for FeedDisposition
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