#[non_exhaustive]pub struct Event<T: ?Sized> {
pub at: SystemTime,
pub value: T,
}
Expand description
Arbitrary event, optionally paired with additional metadata.
Any metadata is added by enabling the correspondent library feature:
timestamps
: adds time of when thisEvent
has happened.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.at: SystemTime
SystemTime
when this Event
has happened.
value: T
Actual value of this Event
.
Implementations
Unwraps the inner Event::value
loosing all the attached metadata.
Splits this Event
to the inner Event::value
and its detached
metadata.
Replaces the inner Event::value
with the given one, dropping the old
one in place.
Maps the inner Event::value
with the given function.
Trait Implementations
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Event<T> where
T: RefUnwindSafe,
impl<T: ?Sized> UnwindSafe for Event<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Asserts this Writer
being Normalized
. Read more
fn fail_on_skipped_with<F>(self, f: F) -> FailOnSkipped<Self, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
fn fail_on_skipped_with<F>(self, f: F) -> FailOnSkipped<Self, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op ArbitraryWriter
implementation. Read more
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op FailureWriter
implementation returning only 0
. Read more