pub enum StreamingError {
InsufficientHeadroom {
path: PathBuf,
asset_bytes: u64,
available: u64,
need_to_free: u64,
},
Probe(LibraryError),
StagedPolicyConflict(StagedStreamingConflict),
Import(String),
Db(String),
}Expand description
A streaming import that cannot start or cannot make progress. Per-asset upload pauses and
per-asset retain decisions are not errors — they are outcomes in the StreamingReport;
these variants are the hard stops.
Variants§
InsufficientHeadroom
The minimum-headroom check failed: the largest single asset cannot fully materialize locally even within the one-asset window. Surfaced before any file is imported — the “cannot import X without freeing Y” confirmation-time error.
Fields
Probe(LibraryError)
The free-space probe failed.
StagedPolicyConflict(StagedStreamingConflict)
The run was configured with a UploadPolicy::Staged
policy, which is mutually exclusive with streaming import. Streaming releases local
bytes quickly; staged defers exactly the T2 upload release depends on — so a staged
policy can never enter the streaming window. Surfaced before any file is imported, mirroring the
planner’s confirmation-time rejection.
Import(String)
A signed-path import failed hard enough to abort the run (not a per-file skip).
Db(String)
A library-index write (dropping a released owned-original row) failed.
Trait Implementations§
Source§impl Debug for StreamingError
impl Debug for StreamingError
Source§impl Display for StreamingError
impl Display for StreamingError
Source§impl Error for StreamingError
impl Error for StreamingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<LibraryError> for StreamingError
impl From<LibraryError> for StreamingError
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Source§impl From<StagedStreamingConflict> for StreamingError
impl From<StagedStreamingConflict> for StreamingError
Source§fn from(source: StagedStreamingConflict) -> Self
fn from(source: StagedStreamingConflict) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for StreamingError
impl !UnwindSafe for StreamingError
impl Freeze for StreamingError
impl Send for StreamingError
impl Sync for StreamingError
impl Unpin for StreamingError
impl UnsafeUnpin for StreamingError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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