pub enum RuntimeError {
NotFound(AgentId),
AlreadyRunning(AgentId),
Spawn {
id: AgentId,
source: Error,
},
Config(String),
Backend(String),
DisallowedEnv(String),
Unsupported {
operation: &'static str,
reason: String,
},
}Expand description
Errors a runtime operation can return.
Variants§
NotFound(AgentId)
No agent with this id has been provisioned.
AlreadyRunning(AgentId)
start was called on an agent that is already running.
Spawn
The agent process could not be spawned.
Config(String)
The agent’s config could not be loaded while building its spec.
Backend(String)
The runtime backend (container engine, etc.) reported a failure — a
non-zero docker/podman exit, or the engine binary being unavailable.
DisallowedEnv(String)
The config references environment variables the operator has not
permitted deployed agents to read. See EnvAllowlist.
Unsupported
This backend cannot serve the operation at all — as distinct from trying
and failing (Backend). Carries what would have to
change, because “not supported” on its own leaves the operator with
nowhere to go.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RuntimeError> for ControlPlaneError
impl From<RuntimeError> for ControlPlaneError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
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
Mutably borrows from an owned value. Read more
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> 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> ⓘ
Converts
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> ⓘ
Converts
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