#[non_exhaustive]pub enum Error {
Show 17 variants
Directory(PathBuf),
InvalidWickConfig(String),
InvalidFileLocation(String),
DestinationDir(String),
NotFound(String),
NoMetadata(String),
PackageReadFailed(String),
ReadFile(PathBuf, Error),
TarFile(PathBuf, Error),
GzipFile(PathBuf, Error),
GzipFailed(Error),
NoName,
NoVersion,
Config(Error),
Oci(Error),
AssetReference(AssetError),
InvalidJson(&'static str, Error),
}
Expand description
This crate’s primary Error type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Directory(PathBuf)
Tried to specify a directory instead of a configuration file.
InvalidWickConfig(String)
Tried to specify a file that is not a component or app file.
InvalidFileLocation(String)
Tried to add a resource file that is not in the same directory (or relative subdirectory) as the component or application file.
DestinationDir(String)
Target directory not found or not readable.
NotFound(String)
A manifest included a reference to a file that could not be found on disk.
NoMetadata(String)
Metadata required for this operation.
PackageReadFailed(String)
Failed to read downloaded package
ReadFile(PathBuf, Error)
Error returned when reading a file
TarFile(PathBuf, Error)
Error returned when working with tar files
GzipFile(PathBuf, Error)
Error returned when working with gz files
GzipFailed(Error)
Error returned when working with gz files
NoName
Tried to publish a component that didn’t have a name
NoVersion
Tried to publish a component that didn’t have a version
Config(Error)
General Configuration error
Oci(Error)
Errors related to OCI push/pull
AssetReference(AssetError)
General asset error
InvalidJson(&'static str, Error)
Could not parse contents as JSON
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more