Struct systemd_wake::CommandError
source · pub struct CommandError {
pub command: Command,
pub kind: CommandErrorKind,
}Expand description
Error struct for running a command. Wraps running with a non-success exit status as an error variant.
Fields§
§command: CommandThe command that was run
kind: CommandErrorKindThe kind of error that occured
Trait Implementations§
source§impl Debug for CommandError
impl Debug for CommandError
source§impl Display for CommandError
impl Display for CommandError
source§impl Error for CommandError
impl Error for CommandError
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()