pub enum ZoneError {
Parse(String),
Command(Error),
CommandOutput(CommandOutputError),
}
Expand description
Errors which can be returned from zone commands.
Variants§
Parse(String)
Failure to parse the output of a query command.
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 ZoneError
impl Error for ZoneError
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 ZoneError
impl From<CommandOutputError> for ZoneError
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 ZoneError
impl Send for ZoneError
impl Sync for ZoneError
impl Unpin for ZoneError
impl !UnwindSafe for ZoneError
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