pub enum StreamOutcome {
Complete {
version: Version,
},
Corrupt {
reached: Option<Version>,
},
Mismatch {
reached: Option<Version>,
got: Version,
},
}Expand description
How one stream’s import ended, and where the stream sits afterward.
“Where it sits” lives inside each variant so the success case always
carries a real Version while the trouble cases carry Option
(None = the stream was never touched). Illegal states (a “complete”
stream with no version) are unrepresentable.
Variants§
Complete
Every block offered for this stream was applied; it is now at version.
Corrupt
A block failed its per-block checksum. The good prefix (if any) was
applied, leaving the stream at reached (None = untouched). The
corrupt block’s own version is deliberately absent — a failed checksum
means its decoded header cannot be trusted; re-fetch from reached’s
successor.
Mismatch
A block’s version did not match the stream’s next expected version
(stale overlap or forward gap). Good prefix applied, stream left at
reached; got is trustworthy (the checksum passed, only the
position was wrong).
Implementations§
Source§impl StreamOutcome
impl StreamOutcome
Trait Implementations§
Source§impl Clone for StreamOutcome
impl Clone for StreamOutcome
Source§fn clone(&self) -> StreamOutcome
fn clone(&self) -> StreamOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StreamOutcome
Source§impl Debug for StreamOutcome
impl Debug for StreamOutcome
impl Eq for StreamOutcome
Source§impl PartialEq for StreamOutcome
impl PartialEq for StreamOutcome
impl StructuralPartialEq for StreamOutcome
Auto Trait Implementations§
impl Freeze for StreamOutcome
impl RefUnwindSafe for StreamOutcome
impl Send for StreamOutcome
impl Sync for StreamOutcome
impl Unpin for StreamOutcome
impl UnsafeUnpin for StreamOutcome
impl UnwindSafe for StreamOutcome
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.