pub enum TaskletError {
InvalidWorkerCount,
MemoryEnvelopeInvalid,
Missing(&'static str),
Cancelled,
FuelExhausted,
Fabric(FabricError),
}Expand description
Errors produced by the shared-memory tasklet SDK surface.
These are SDK-side validation errors, distinct from the underlying
transport errors in FabricError. A successful submission may still
surface a FabricError from the runtime.
Variants§
InvalidWorkerCount
max_threads > num_cores, or either is zero.
MemoryEnvelopeInvalid
Memory envelope shared + max_threads * scratch_per_worker overflowed
or exceeded the configured tasklet linear-memory budget.
Missing(&'static str)
A required builder field was not set.
Cancelled
The whole tasklet was cancelled (revoke / expiry / explicit cancel).
FuelExhausted
The lease-wide shared fuel pool is exhausted (Phase 48.14 — folds
Phase 48.3 follow-up #35). Produced by ?-propagation from
CoordinatorCtx::fuel_checkpoint / WorkerCtx::fuel_checkpoint
via the From<FuelExhausted> impl below, so programmer source
can write ctx.fuel_checkpoint(n)? and propagate a typed fuel
error without collapsing it into TaskletError::Cancelled.
Fabric(FabricError)
Underlying transport / host error.
Trait Implementations§
Source§impl Clone for TaskletError
impl Clone for TaskletError
Source§fn clone(&self) -> TaskletError
fn clone(&self) -> TaskletError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more