pub type PreparedTileBatchError = BatchInfrastructureError;Expand description
Allocation, scheduling, or collection failure for a prepared JPEG batch.
Prepared batches retain codec failures independently in their returned per-tile result vector, so only infrastructure failures use this outer type.
Aliased Type§
pub enum PreparedTileBatchError {
EmptyBatchPlan,
AllocationTooLarge {
what: &'static str,
requested: usize,
cap: usize,
},
HostAllocationFailed {
what: &'static str,
bytes: usize,
},
WorkerSpawnFailed {
worker: usize,
},
WorkerPanicked {
worker: usize,
},
WorkerSlotMissing {
worker: usize,
available: usize,
},
ParallelWorkerPanicked,
SchedulerPoisoned,
ResultIndexOutOfBounds {
index: usize,
job_count: usize,
},
DuplicateResult {
index: usize,
},
MissingResult {
index: usize,
},
ResultKindMismatch {
index: usize,
},
}Variants§
EmptyBatchPlan
An internal planning boundary was invoked without any submitted jobs.
AllocationTooLarge
Batch-owned metadata would exceed the operation’s host-memory budget.
Fields
HostAllocationFailed
The host allocator rejected an otherwise cap-valid reservation.
Fields
WorkerSpawnFailed
The host could not create a requested scoped worker.
WorkerPanicked
A worker unwound before completing its assigned jobs.
WorkerSlotMissing
Planned work referenced a worker slot that does not exist.
Fields
ParallelWorkerPanicked
A worker managed by a shared parallel runtime unwound.
SchedulerPoisoned
Shared batch state was poisoned by an earlier unwind.
ResultIndexOutOfBounds
A worker reported an index outside the submitted job range.
DuplicateResult
More than one worker result claimed the same job index.
MissingResult
No worker result was produced for a submitted job.
ResultKindMismatch
Collector state contradicted a result kind it had just inspected.