Enum brane_ctl::errors::LifetimeError
source · pub enum LifetimeError {
Show 20 variants
CanonicalizeError {
path: PathBuf,
err: Error,
},
ExeParseError {
raw: String,
},
DockerComposeNotFound {
path: PathBuf,
},
DockerComposeNotAFile {
path: PathBuf,
},
DockerComposeNotBakedIn {
kind: NodeKind,
version: Version,
},
DockerComposeCreateError {
path: PathBuf,
err: Error,
},
DockerComposeWriteError {
path: PathBuf,
err: Error,
},
AuditLogCreate {
path: PathBuf,
err: Error,
},
ProxyReadError {
err: YamlError,
},
HostsFileCreateError {
path: PathBuf,
err: Error,
},
HostsFileWriteError {
path: PathBuf,
err: Error,
},
ImageDigestError {
path: PathBuf,
err: Error,
},
ImageLoadError {
image: Box<Image>,
source: Box<ImageSource>,
err: Error,
},
MissingProxyPath,
MissingProxyService,
NodeConfigLoadError {
err: YamlError,
},
DockerConnectError {
err: DockerError,
},
UnmatchedNodeKind {
got: NodeKind,
expected: NodeKind,
},
JobLaunchError {
command: Command,
err: Error,
},
JobFailure {
command: Command,
status: ExitStatus,
},
}
Expand description
Errors that relate to managing the lifetime of the node.
Note: we’ve boxed Image
and ImageSource
to reduce the size of the error (and avoid running into clippy::result_large_err
).
Variants§
CanonicalizeError
Failed to canonicalize the given path.
ExeParseError
Failed to resolve the executable to a list of shell arguments.
DockerComposeNotFound
Failed to verify the given Docker Compose file exists.
DockerComposeNotAFile
Failed to verify the given Docker Compose file is a file.
DockerComposeNotBakedIn
Relied on a build-in for a Docker Compose version that is not the default one.
DockerComposeCreateError
Failed to open a new Docker Compose file.
DockerComposeWriteError
Failed to write to a Docker Compose file.
AuditLogCreate
Failed to touch the audit log into existance.
ProxyReadError
Failed to read the proxy.yml
file.
HostsFileCreateError
Failed to open the extra hosts file.
HostsFileWriteError
Failed to write to the extra hosts file.
ImageDigestError
Failed to get the digest of the given image file.
ImageLoadError
Failed to load/import the given image.
MissingProxyPath
The user gave us a proxy service definition, but not a proxy file path.
MissingProxyService
The user gave use a proxy file path, but not a proxy service definition.
NodeConfigLoadError
Failed to load the given node config file.
DockerConnectError
Failed to connect to the local Docker daemon.
Fields
err: DockerError
UnmatchedNodeKind
The given start command (got) did not match the one in the node.yml
file (expected).
JobLaunchError
Failed to launch the given job.
JobFailure
The given job failed.
Trait Implementations§
source§impl Debug for LifetimeError
impl Debug for LifetimeError
source§impl Display for LifetimeError
impl Display for LifetimeError
source§impl Error for LifetimeError
impl Error for LifetimeError
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
Auto Trait Implementations§
impl Freeze for LifetimeError
impl !RefUnwindSafe for LifetimeError
impl Send for LifetimeError
impl Sync for LifetimeError
impl Unpin for LifetimeError
impl !UnwindSafe for LifetimeError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
source§impl<T> ErrorTrace for T
impl<T> ErrorTrace for T
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>
T
in a tonic::Request
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self
to an expression for Diesel’s query builder. Read more