Enum brane_ctl::errors::DownloadError
source · pub enum DownloadError {
Show 14 variants
CachedirTagCreate {
path: PathBuf,
err: Error,
},
CachedirTagWrite {
path: PathBuf,
err: Error,
},
DirNotFound {
what: &'static str,
path: PathBuf,
},
DirNotADir {
what: &'static str,
path: PathBuf,
},
DirCreateError {
what: &'static str,
path: PathBuf,
err: Error,
},
TempDirError {
err: Error,
},
DownloadError {
address: String,
path: PathBuf,
err: Box<Error>,
},
UnarchiveError {
tar: PathBuf,
target: PathBuf,
err: Box<Error>,
},
ReadDirError {
path: PathBuf,
err: Error,
},
ReadEntryError {
path: PathBuf,
entry: usize,
err: Error,
},
MoveError {
source: PathBuf,
target: PathBuf,
err: Box<Error>,
},
DockerConnectError {
err: Error,
},
PullError {
name: String,
image: String,
err: Error,
},
SaveError {
name: String,
image: String,
path: PathBuf,
err: Error,
},
}
Expand description
Errors that relate to downloading stuff (the subcommand, specifically).
Note: we box brane_shr::fs::Error
to avoid the error enum growing too large (see clippy::result_large_err
).
Variants§
CachedirTagCreate
Failed to create a new CACHEDIR.TAG
CachedirTagWrite
Failed to write to a new CACHEDIR.TAG
DirNotFound
The given directory does not exist.
DirNotADir
The given directory exists but is not a directory.
DirCreateError
Could not create a new directory at the given location.
TempDirError
Failed to create a temporary directory.
DownloadError
Failed to run the actual download command.
UnarchiveError
Failed to extract the given archive.
ReadDirError
Failed to read all entries in a directory.
ReadEntryError
Failed to read a certain entry in a directory.
MoveError
Failed to move something.
DockerConnectError
Failed to connect to local Docker client.
PullError
Failed to pull an image.
SaveError
Failed to save a pulled image.
Trait Implementations§
source§impl Debug for DownloadError
impl Debug for DownloadError
source§impl Display for DownloadError
impl Display for DownloadError
source§impl Error for DownloadError
impl Error for DownloadError
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 Freeze for DownloadError
impl !RefUnwindSafe for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl !UnwindSafe for DownloadError
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
Mutably borrows from an owned value. Read more
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
Returns a formatter that writes the error to the given formatter, with any sources it has. Read more
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>
Wrap the input message
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
Convert
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
Convert
&self
to an expression for Diesel’s query builder. Read more