pub enum WorkerError {
Show 42 variants
SandboxNotFound(String),
SandboxCreationFailed(String),
SandboxAlreadyExists(String),
SandboxInvalidState {
sandbox_id: String,
state: String,
expected: String,
},
PoolExhausted {
max: usize,
},
SandboxTimeout {
operation: String,
timeout_secs: u64,
},
AdmissionDenied {
reason: String,
},
QueueFull {
waiting: usize,
bound: usize,
},
QueueTimeout {
timeout_secs: u64,
},
AdmissionInfeasible {
reason: String,
},
VmStartFailed(String),
VmStopFailed(String),
CloudInitFailed(String),
VirtiofsFailed(String),
ContainerNotFound(String),
ContainerCreationFailed(String),
ContainerAlreadyExists(String),
ContainerInvalidState {
container_id: String,
state: String,
expected: String,
},
ExecFailed(String),
ImageNotFound(String),
ImagePullFailed {
image: String,
reason: String,
},
ImageParseFailed {
image: String,
reason: String,
},
ImageInvalid(String),
RegistryAuthFailed(String),
RafsError(String),
WorkflowNotFound(String),
WorkflowParseError(String),
RunNotFound(String),
DispatchFailed(String),
StepFailed {
job: String,
step: String,
error: String,
},
WorkflowTimeout {
workflow_id: String,
timeout_secs: u64,
},
SubscriptionFailed(String),
PublishFailed(String),
InvalidTopic(String),
Unauthorized {
subject: String,
operation: String,
resource: String,
},
PolicyError(String),
TransportError(String),
SerializationError(String),
IoError(String),
ConfigError(String),
Internal(String),
Unsupported(String),
}Expand description
Main error type for worker operations
Variants§
SandboxNotFound(String)
SandboxCreationFailed(String)
SandboxAlreadyExists(String)
SandboxInvalidState
PoolExhausted
SandboxTimeout
AdmissionDenied
Per-Subject or per-group quota exceeded. Fail-fast: unlike capacity exhaustion, a quota rejection never queues (retrying immediately cannot help until the Subject/group’s own active count drops).
QueueFull
The bounded admission wait-queue was already at capacity when this request arrived — rejected immediately rather than silently blocking past the configured bound.
QueueTimeout
A request queued for capacity did not get admitted within the configured wait timeout.
AdmissionInfeasible
Demand exceeds this node’s configured totals (e.g. a GPU request on a
node that declares no GPU capacity, or memory above the declared total)
— no release can ever satisfy it. Rejected immediately rather than
queued, so callers can distinguish “never fits here” from “busy right
now” (QueueTimeout).
VmStartFailed(String)
VmStopFailed(String)
CloudInitFailed(String)
VirtiofsFailed(String)
ContainerNotFound(String)
ContainerCreationFailed(String)
ContainerAlreadyExists(String)
ContainerInvalidState
ExecFailed(String)
ImageNotFound(String)
ImagePullFailed
ImageParseFailed
ImageInvalid(String)
RegistryAuthFailed(String)
RafsError(String)
WorkflowNotFound(String)
WorkflowParseError(String)
RunNotFound(String)
DispatchFailed(String)
StepFailed
WorkflowTimeout
SubscriptionFailed(String)
PublishFailed(String)
InvalidTopic(String)
Fields
PolicyError(String)
TransportError(String)
SerializationError(String)
IoError(String)
ConfigError(String)
Internal(String)
Unsupported(String)
A SandboxBackend operation (e.g. deliver_namespace) was invoked in
a shape the backend doesn’t (yet) support — e.g. an unsupported
NamespaceTransport variant, or a backend that hasn’t been re-grounded
against the narrowed trait surface yet.
Trait Implementations§
Source§impl Debug for WorkerError
impl Debug for WorkerError
Source§impl Display for WorkerError
impl Display for WorkerError
Source§impl Error for WorkerError
impl Error for WorkerError
1.30.0 · 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<Error> for WorkerError
impl From<Error> for WorkerError
Source§impl From<Error> for WorkerError
impl From<Error> for WorkerError
Source§impl From<Error> for WorkerError
impl From<Error> for WorkerError
Source§impl From<Error> for WorkerError
impl From<Error> for WorkerError
Auto Trait Implementations§
impl Freeze for WorkerError
impl RefUnwindSafe for WorkerError
impl Send for WorkerError
impl Sync for WorkerError
impl Unpin for WorkerError
impl UnsafeUnpin for WorkerError
impl UnwindSafe for WorkerError
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<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