Enum cargo_deb::CargoDebError
source · [−]#[non_exhaustive]
pub enum CargoDebError {
Show 23 variants
Io(Error),
TomlParsing(Error),
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)
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
sourceimpl Debug for CargoDebError
impl Debug for CargoDebError
sourceimpl Display for CargoDebError
impl Display for CargoDebError
sourceimpl Error for CargoDebError
impl Error for CargoDebError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<&'static str> for CargoDebError
impl From<&'static str> for CargoDebError
sourcefn from(msg: &'static str) -> CargoDebError
fn from(msg: &'static str) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<Error> for CargoDebError
impl From<Error> for CargoDebError
sourcefn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<Error> for CargoDebError
impl From<Error> for CargoDebError
sourcefn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<Error> for CargoDebError
impl From<Error> for CargoDebError
sourcefn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<Error> for CargoDebError
impl From<Error> for CargoDebError
sourcefn from(err: Error) -> CargoDebError
fn from(err: Error) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for CargoDebError
impl From<FromUtf8Error> for CargoDebError
sourcefn from(err: FromUtf8Error) -> CargoDebError
fn from(err: FromUtf8Error) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<GlobError> for CargoDebError
impl From<GlobError> for CargoDebError
sourcefn from(err: GlobError) -> CargoDebError
fn from(err: GlobError) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<PatternError> for CargoDebError
impl From<PatternError> for CargoDebError
sourcefn from(err: PatternError) -> CargoDebError
fn from(err: PatternError) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<SystemTimeError> for CargoDebError
impl From<SystemTimeError> for CargoDebError
sourcefn from(err: SystemTimeError) -> CargoDebError
fn from(err: SystemTimeError) -> CargoDebError
Converts to this type from the input type.
sourceimpl From<Utf8Error> for CargoDebError
impl From<Utf8Error> for CargoDebError
sourcefn from(err: Utf8Error) -> CargoDebError
fn from(err: Utf8Error) -> CargoDebError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CargoDebError
impl Send for CargoDebError
impl Sync for CargoDebError
impl Unpin for CargoDebError
impl !UnwindSafe for CargoDebError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more