Enum shell_candy::Error
source · pub enum Error {
TaskFailure {
task: String,
exit_status: ExitStatus,
},
InvalidTask {
task: String,
reason: String,
},
CouldNotSpawn {
task: String,
source: Error,
},
CouldNotWait {
task: String,
source: Error,
},
EarlyReturn(Box<dyn Error + Send + Sync + 'static>),
}Expand description
The possible errors reported by a ShellTask.
Variants
TaskFailure
This error occurs when a command exits with a status other than 0.
InvalidTask
This error occurs when a task could not be instantiated because it was malformed. This is a usage error, make sure you’ve typed the command correctly.
CouldNotSpawn
Fields
task: StringThe task that could not spawn.
source: ErrorThe io::Error that was reported by std::process::Command::spawn.
This error occurs when a task could not spawn. Originates from std::process::Command::spawn.
CouldNotWait
Fields
task: StringThe task that could not be waited for.
source: Error/The io::Error that was reported by std::process::Child::wait.
There was an error waiting for the task status. Originates from std::process::Child::wait.
EarlyReturn(Box<dyn Error + Send + Sync + 'static>)
This error can be returned from log handlers to terminate early.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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