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
This variant is returned when the specified log handler returns early or runs into an unrecoverable error.
Fields
ยง
stdout_lines: Vec<String>The lines printed to stdout by the task up until the point of early return.
ยง
stderr_lines: Vec<String>The lines printed to stderr by the task up until the point of early return.
ยง
return_value: TThe early return value.
CompleteOutput
This variant is returned when the specified log handler did not return early.
Trait Implementationsยง
Auto Trait Implementationsยง
impl<T> Freeze for ShellTaskOutput<T>where
T: Freeze,
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ยง
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more