pub enum AdmError {
Command(Error),
CommandOutput(CommandOutputError),
}
Expand description
The error code for any operation that fails during an adm command.
Variants§
Command(Error)
Failure to execute a subcommand.
CommandOutput(CommandOutputError)
Failure reading a command’s stdout (or non-zero error code).
Trait Implementations§
source§impl Error for AdmError
impl Error for AdmError
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<CommandOutputError> for AdmError
impl From<CommandOutputError> for AdmError
source§fn from(source: CommandOutputError) -> Self
fn from(source: CommandOutputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AdmError
impl Send for AdmError
impl Sync for AdmError
impl Unpin for AdmError
impl !UnwindSafe for AdmError
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