#[non_exhaustive]pub enum ChildCommandError {
#[non_exhaustive] SpawnChild {
source: Error,
},
#[non_exhaustive] WriteToStdin {
source: Error,
},
#[non_exhaustive] ReadOutput {
source: Error,
},
#[non_exhaustive] UnsuccessfulStatus {
status: ExitStatus,
stderr: String,
},
}Expand description
Error variants for using a child command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]SpawnChild
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]WriteToStdin
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]ReadOutput
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]UnsuccessfulStatus
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
status: ExitStatusTrait Implementations§
Source§impl Debug for ChildCommandError
impl Debug for ChildCommandError
Source§impl Display for ChildCommandError
impl Display for ChildCommandError
Source§impl Error for ChildCommandError
impl Error for ChildCommandError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for ChildCommandError
impl !RefUnwindSafe for ChildCommandError
impl Send for ChildCommandError
impl Sync for ChildCommandError
impl Unpin for ChildCommandError
impl !UnwindSafe for ChildCommandError
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