#[repr(u16)]pub enum CargoMakeError {
Show 18 variants
EnvVarCycle(String),
AliasCycle(String, String),
CircularReference(String),
VersionTooOld(String),
ExitCodeValidation = 104,
ExitCodeError(i32),
DescriptorParseFailed(String),
ParseFileFailed(String, String),
Arity(&'static str),
MethodCallRestriction(&'static str),
TaskIs(String, &'static str),
NotFound(String),
StdIoError {
error: Error,
},
StdFmtError {
error: Error,
},
ExitCode(ExitCode),
TomlDeError {
error: Error,
},
FsIOError {
error: FsIOError,
},
ParserError {
error: ParserError,
},
}
Variants§
EnvVarCycle(String)
AliasCycle(String, String)
CircularReference(String)
VersionTooOld(String)
ExitCodeValidation = 104
ExitCodeError(i32)
DescriptorParseFailed(String)
ParseFileFailed(String, String)
Arity(&'static str)
MethodCallRestriction(&'static str)
TaskIs(String, &'static str)
NotFound(String)
StdIoError
StdFmtError
ExitCode(ExitCode)
TomlDeError
Fields
§
error: Error
FsIOError
Fields
§
error: FsIOError
ParserError
Fields
§
error: ParserError
Trait Implementations§
Source§impl AsRef<str> for CargoMakeError
impl AsRef<str> for CargoMakeError
Source§impl Debug for CargoMakeError
impl Debug for CargoMakeError
Source§impl Display for CargoMakeError
impl Display for CargoMakeError
Source§impl<'_derivative_strum> From<&'_derivative_strum CargoMakeError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CargoMakeError> for &'static str
Source§fn from(x: &'_derivative_strum CargoMakeError) -> &'static str
fn from(x: &'_derivative_strum CargoMakeError) -> &'static str
Converts to this type from the input type.
Source§impl<'_enum> From<&'_enum CargoMakeError> for CargoMakeErrorDiscriminants
impl<'_enum> From<&'_enum CargoMakeError> for CargoMakeErrorDiscriminants
Source§fn from(val: &'_enum CargoMakeError) -> CargoMakeErrorDiscriminants
fn from(val: &'_enum CargoMakeError) -> CargoMakeErrorDiscriminants
Converts to this type from the input type.
Source§impl From<CargoMakeError> for &'static str
impl From<CargoMakeError> for &'static str
Source§fn from(x: CargoMakeError) -> &'static str
fn from(x: CargoMakeError) -> &'static str
Converts to this type from the input type.
Source§impl From<CargoMakeError> for CargoMakeErrorDiscriminants
impl From<CargoMakeError> for CargoMakeErrorDiscriminants
Source§fn from(val: CargoMakeError) -> CargoMakeErrorDiscriminants
fn from(val: CargoMakeError) -> CargoMakeErrorDiscriminants
Converts to this type from the input type.
Source§impl From<Error> for CargoMakeError
impl From<Error> for CargoMakeError
Source§impl From<Error> for CargoMakeError
impl From<Error> for CargoMakeError
Source§impl From<Error> for CargoMakeError
impl From<Error> for CargoMakeError
Source§impl From<ExitCode> for CargoMakeError
impl From<ExitCode> for CargoMakeError
Source§impl From<FsIOError> for CargoMakeError
impl From<FsIOError> for CargoMakeError
Source§impl From<ParserError> for CargoMakeError
impl From<ParserError> for CargoMakeError
Source§impl Termination for CargoMakeError
impl Termination for CargoMakeError
Auto Trait Implementations§
impl Freeze for CargoMakeError
impl !RefUnwindSafe for CargoMakeError
impl Send for CargoMakeError
impl Sync for CargoMakeError
impl Unpin for CargoMakeError
impl !UnwindSafe for CargoMakeError
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