Enum cargo_deb::CargoDebError
source · #[non_exhaustive]pub enum CargoDebError {
Show 23 variants
Io(Error),
TomlParsing(Error, PathBuf),
IoFile(&'static str, Error, PathBuf),
CommandFailed(Error, &'static str),
CommandError(&'static str, String, Vec<u8>),
Str(&'static str),
NumParse(&'static str, ParseIntError),
InstallFailed,
BuildFailed,
DebHelperReplaceFailed(PathBuf),
StripFailed(PathBuf, String),
SystemTime(SystemTimeError),
ParseTOML(Error),
ParseJSON(Error),
ParseUTF8(Utf8Error),
PackageNotFound(String, Vec<u8>),
PackageNotFoundInWorkspace(String, String),
NoRootFoundInWorkspace(String),
VariantNotFound(String),
GlobPatternError(PatternError),
AssetFileNotFound(PathBuf),
AssetGlobError(GlobError),
LzmaCompressionError(Error),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
TomlParsing(Error, PathBuf)
IoFile(&'static str, Error, PathBuf)
CommandFailed(Error, &'static str)
CommandError(&'static str, String, Vec<u8>)
Str(&'static str)
NumParse(&'static str, ParseIntError)
InstallFailed
BuildFailed
DebHelperReplaceFailed(PathBuf)
StripFailed(PathBuf, String)
SystemTime(SystemTimeError)
ParseTOML(Error)
ParseJSON(Error)
ParseUTF8(Utf8Error)
PackageNotFound(String, Vec<u8>)
PackageNotFoundInWorkspace(String, String)
NoRootFoundInWorkspace(String)
VariantNotFound(String)
GlobPatternError(PatternError)
AssetFileNotFound(PathBuf)
AssetGlobError(GlobError)
LzmaCompressionError(Error)
Trait Implementations§
source§impl Debug for CargoDebError
impl Debug for CargoDebError
source§impl Display for CargoDebError
impl Display for CargoDebError
source§impl Error for CargoDebError
impl Error for CargoDebError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<&'static str> for CargoDebError
impl From<&'static str> for CargoDebError
source§fn from(msg: &'static str) -> CargoDebError
fn from(msg: &'static str) -> CargoDebError
Converts to this type from the input type.
source§impl From<Error> for CargoDebError
impl From<Error> for CargoDebError
source§fn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
source§impl From<Error> for CargoDebError
impl From<Error> for CargoDebError
source§fn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
source§impl From<Error> for CargoDebError
impl From<Error> for CargoDebError
source§fn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for CargoDebError
impl From<FromUtf8Error> for CargoDebError
source§fn from(err: FromUtf8Error) -> CargoDebError
fn from(err: FromUtf8Error) -> CargoDebError
Converts to this type from the input type.
source§impl From<GlobError> for CargoDebError
impl From<GlobError> for CargoDebError
source§fn from(err: GlobError) -> CargoDebError
fn from(err: GlobError) -> CargoDebError
Converts to this type from the input type.
source§impl From<PatternError> for CargoDebError
impl From<PatternError> for CargoDebError
source§fn from(err: PatternError) -> CargoDebError
fn from(err: PatternError) -> CargoDebError
Converts to this type from the input type.
source§impl From<SystemTimeError> for CargoDebError
impl From<SystemTimeError> for CargoDebError
source§fn from(err: SystemTimeError) -> CargoDebError
fn from(err: SystemTimeError) -> CargoDebError
Converts to this type from the input type.
source§impl From<Utf8Error> for CargoDebError
impl From<Utf8Error> for CargoDebError
source§fn from(err: Utf8Error) -> CargoDebError
fn from(err: Utf8Error) -> CargoDebError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CargoDebError
impl !RefUnwindSafe for CargoDebError
impl Send for CargoDebError
impl Sync for CargoDebError
impl Unpin for CargoDebError
impl !UnwindSafe for CargoDebError
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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