pub enum LifecycleError {
Cycle(String),
SpecBuild {
resource: String,
source: SpecError,
},
Start {
resource: String,
source: RuntimeError,
},
Stop {
resource: String,
source: RuntimeError,
},
HealthcheckTimeout {
resource: String,
timeout: Duration,
},
DependencyFailed {
resource: String,
dependency: String,
reason: String,
},
ResourceNotFound(String),
MissingEnvVars {
names: Vec<String>,
},
}Expand description
Errors raised by the lifecycle layer.
Variants§
Cycle(String)
The dependency graph contains a cycle.
SpecBuild
Converting a manifest resource into a crate::ContainerSpec failed.
Fields
Start
A resource failed to start.
Stop
A resource failed to stop cleanly.
HealthcheckTimeout
A resource never became healthy within the configured timeout.
DependencyFailed
A dependency of the resource failed.
Fields
ResourceNotFound(String)
A reference targets a resource that does not exist in the plan.
MissingEnvVars
One or more ${env.VAR} references in the manifest cannot be
resolved because the variables are unset and have no default.
Trait Implementations§
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for LifecycleError
impl !UnwindSafe for LifecycleError
impl Freeze for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request