pub enum UtilError {
Show 37 variants
DockerConnectionFailed {
err: Error,
},
DockerVersionError {
err: Error,
},
DockerNoVersion,
IllegalDockerVersion {
version: String,
err: ParseError,
},
BuildxLaunchError {
command: String,
err: Error,
},
BuildxVersionNoParts {
version: String,
},
BuildxVersionNoV {
version: String,
},
IllegalBuildxVersion {
version: String,
err: ParseError,
},
DirectoryReadError {
dir: PathBuf,
err: Error,
},
UndeterminedPackageFile {
dir: PathBuf,
},
PackageFileOpenError {
file: PathBuf,
err: Error,
},
PackageFileReadError {
file: PathBuf,
err: Error,
},
UndeterminedPackageKind {
file: PathBuf,
},
UserConfigDirNotFound,
BraneConfigDirCreateError {
path: PathBuf,
err: Error,
},
BraneConfigDirNotFound {
path: PathBuf,
},
HistoryFileCreateError {
path: PathBuf,
err: Error,
},
HistoryFileNotFound {
path: PathBuf,
},
UserLocalDataDirNotFound,
BraneDataDirCreateError {
path: PathBuf,
err: Error,
},
BraneDataDirNotFound {
path: PathBuf,
},
BranePackageDirCreateError {
path: PathBuf,
err: Error,
},
BranePackageDirNotFound {
path: PathBuf,
},
BraneDatasetsDirCreateError {
path: PathBuf,
err: Error,
},
BraneDatasetsDirNotFound {
path: PathBuf,
},
VersionsError {
err: LocalError,
},
PackageDirCreateError {
package: String,
path: PathBuf,
err: Error,
},
PackageDirNotFound {
package: String,
path: PathBuf,
},
VersionDirCreateError {
package: String,
version: Version,
path: PathBuf,
err: Error,
},
VersionDirNotFound {
package: String,
version: Version,
path: PathBuf,
},
BraneDatasetDirCreateError {
name: String,
path: PathBuf,
err: Error,
},
BraneDatasetDirNotFound {
name: String,
path: PathBuf,
},
BraneInstancesDirCreateError {
path: PathBuf,
err: Error,
},
BraneInstancesDirNotFound {
path: PathBuf,
},
BraneInstanceDirCreateError {
path: PathBuf,
name: String,
err: Error,
},
BraneInstanceDirNotFound {
path: PathBuf,
name: String,
},
InvalidBakeryName {
name: String,
},
}
Expand description
Collects errors of utilities that don’t find an origin in just one subcommand.
Variants§
DockerConnectionFailed
Could not connect to the local Docker instance
DockerVersionError
Could not get the version of the Docker daemon
DockerNoVersion
The docker daemon returned something, but not the version
IllegalDockerVersion
The version reported by the Docker daemon is not a valid version
BuildxLaunchError
Could not launch the command to get the Buildx version
BuildxVersionNoParts
The Buildx version in the buildx command does not have at least two parts, separated by spaces
BuildxVersionNoV
The Buildx version is not prepended with a ‘v’
IllegalBuildxVersion
The version reported by Buildx is not a valid version
DirectoryReadError
Could not read from a given directory
UndeterminedPackageFile
Could not automatically determine package file inside a directory.
PackageFileOpenError
Could not open the main package file of the package to build.
PackageFileReadError
Could not read the main package file of the package to build.
UndeterminedPackageKind
Could not automatically determine package kind based on the file.
UserConfigDirNotFound
Could not find the user config folder
BraneConfigDirCreateError
Could not create brane’s folder in the config folder
BraneConfigDirNotFound
Could not find brane’s folder in the config folder
HistoryFileCreateError
Could not create Brane’s history file
HistoryFileNotFound
Could not find Brane’s history file
UserLocalDataDirNotFound
Could not find the user local data folder
BraneDataDirCreateError
Could not find create brane’s folder in the data folder
BraneDataDirNotFound
Could not find brane’s folder in the data folder
BranePackageDirCreateError
Could not find create the package folder inside brane’s data folder
BranePackageDirNotFound
Could not find the package folder inside brane’s data folder
BraneDatasetsDirCreateError
Could not create the dataset folder inside brane’s data folder
BraneDatasetsDirNotFound
Could not find the dataset folder inside brane’s data folder.
VersionsError
Failed to read the versions in a package’s directory.
Fields
err: LocalError
PackageDirCreateError
Could not create the directory for a package
PackageDirNotFound
The target package directory does not exist
VersionDirCreateError
Could not create a new directory for the given version
VersionDirNotFound
The target package/version directory does not exist
BraneDatasetDirCreateError
Could not create the dataset folder for a specific dataset
BraneDatasetDirNotFound
Could not find the dataset folder for a specific dataset.
BraneInstancesDirCreateError
Could not create the instances folder.
BraneInstancesDirNotFound
The instances folder did not exist.
BraneInstanceDirCreateError
Could not create the instance folder for a specific instance.
BraneInstanceDirNotFound
The instance folder for a specific instance did not exist.
InvalidBakeryName
The given name is not a valid bakery name.
Trait Implementations§
source§impl Error for UtilError
impl Error for UtilError
1.30.0 · 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 UtilError
impl !RefUnwindSafe for UtilError
impl Send for UtilError
impl Sync for UtilError
impl Unpin for UtilError
impl !UnwindSafe for UtilError
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