Enum shell_candy::ShellTaskOutput
source · pub enum ShellTaskOutput<T> {
EarlyReturn {
stdout_lines: Vec<String>,
stderr_lines: Vec<String>,
return_value: T,
},
CompleteOutput {
status: ExitStatus,
stdout_lines: Vec<String>,
stderr_lines: Vec<String>,
},
}
Expand description
ShellTaskOutput is returned by ShellTask::run
and contains information about the task on completion.
Variants
EarlyReturn
Fields
stdout_lines: Vec<String>
The lines printed to stdout
by the task up until the point of early return.
This variant is returned when the specified log handler returns early or runs into an unrecoverable error.
CompleteOutput
Fields
status: ExitStatus
The exit status of the task.
This variant is returned when the specified log handler did not return early.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ShellTaskOutput<T>where
T: RefUnwindSafe,
impl<T> Send for ShellTaskOutput<T>where
T: Send,
impl<T> Sync for ShellTaskOutput<T>where
T: Sync,
impl<T> Unpin for ShellTaskOutput<T>where
T: Unpin,
impl<T> UnwindSafe for ShellTaskOutput<T>where
T: UnwindSafe,
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