pub struct ScriptOutcome {
pub lines_executed: usize,
pub lines_succeeded: usize,
pub failures: Vec<(usize, DynamicCliError)>,
}Expand description
Result of a full CliInterface::run_script run.
Fields§
§lines_executed: usizeNumber of non-blank, non-comment lines dispatched (attempted).
lines_succeeded: usizeNumber of those lines that succeeded.
failures: Vec<(usize, DynamicCliError)>(1-based line number, wrapped error) for every line that failed.
Always empty when policy was
ScriptErrorPolicy::Abort and the run
completed (an abort returns Err instead of populating this).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScriptOutcome
impl !UnwindSafe for ScriptOutcome
impl Freeze for ScriptOutcome
impl Send for ScriptOutcome
impl Sync for ScriptOutcome
impl Unpin for ScriptOutcome
impl UnsafeUnpin for ScriptOutcome
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