Enum brane_cli::errors::PackageError
source · pub enum PackageError {
UtilError {
err: UtilError,
},
IndexError {
err: Error,
},
PackageVersionError {
name: String,
version: Version,
err: UtilError,
},
PackageError {
name: String,
err: UtilError,
},
ConsentError {
err: Error,
},
PackageRemoveError {
name: String,
version: Version,
dir: PathBuf,
err: Error,
},
VersionsError {
name: String,
dir: PathBuf,
err: Error,
},
VersionParseError {
name: String,
raw: String,
err: ParseError,
},
PackageInfoError {
path: PathBuf,
err: PackageInfoError,
},
PackageInfoNoDigest {
path: PathBuf,
},
DockerRemoveError {
image: Box<Image>,
err: DockerError,
},
}
Expand description
Lists the errors that can occur when trying to do stuff with packages
Note: Image
is boxed to avoid the error enum growing too large (see clippy::reslt_large_err
).
Variants§
UtilError
Something went wrong while calling utilities
IndexError
Something went wrong when fetching an index.
PackageVersionError
Failed to resolve a specific package/version pair
PackageError
Failed to resolve a specific package
ConsentError
Failed to ask for the user’s consent
PackageRemoveError
Failed to remove a package directory
VersionsError
Failed to get the versions of a package
VersionParseError
Failed to parse the version of a package
PackageInfoError
Failed to load the PackageInfo of the given package
PackageInfoNoDigest
The given PackageInfo has no digest set
DockerRemoveError
Could not remove the given image from the Docker daemon
Trait Implementations§
source§impl Debug for PackageError
impl Debug for PackageError
source§impl Display for PackageError
impl Display for PackageError
source§impl Error for PackageError
impl Error for PackageError
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 PackageError
impl !RefUnwindSafe for PackageError
impl Send for PackageError
impl Sync for PackageError
impl Unpin for PackageError
impl !UnwindSafe for PackageError
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