Trait lilos::exec::TestResult
source · pub trait TestResult {
type Output;
// Required method
fn into_test_result(self) -> Option<Self::Output>;
}
Expand description
Trait implemented by things that indicate success or failure, to be used
with Notify::until
and friends.
In practice this is bool
(if there’s no output associated with success) or
Option<T>
(if there is).
This is used by the various polling functions in this module.
Required Associated Types§
Required Methods§
sourcefn into_test_result(self) -> Option<Self::Output>
fn into_test_result(self) -> Option<Self::Output>
Converts self
into an Option
that is Some
on success, None
on
failure.