pub enum TriggerEvent<'a> {
Armed {
watched: &'a [String],
pre: Duration,
},
Transition(&'a Transition),
Fired(&'a Transition),
Preamble(&'a PreambleInfo),
Progress {
samples: u64,
dropped: u64,
},
GaveUp {
after: Duration,
},
}Available on crate feature
decode only.Expand description
What a trigger capture reports as it runs — the frontend renders these;
the RecordReport at the end carries the counts.
Variants§
Armed
The subscriptions are declared and the ring is filling: the watch set, and the pre-roll it is budgeted to.
Transition(&'a Transition)
A rule changed state (every genuine change, firing or not).
Fired(&'a Transition)
The capture fired on this transition: the ring is snapshotted and the preamble is being fetched.
Preamble(&'a PreambleInfo)
The preamble is written, as the header states it.
Progress
Post-roll progress: observed samples and drops queued so far.
GaveUp
Nothing fired within give_up; nothing was written.
Trait Implementations§
Source§impl<'a> Clone for TriggerEvent<'a>
impl<'a> Clone for TriggerEvent<'a>
Source§fn clone(&self) -> TriggerEvent<'a>
fn clone(&self) -> TriggerEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for TriggerEvent<'a>
impl<'a> RefUnwindSafe for TriggerEvent<'a>
impl<'a> Send for TriggerEvent<'a>
impl<'a> Sync for TriggerEvent<'a>
impl<'a> Unpin for TriggerEvent<'a>
impl<'a> UnsafeUnpin for TriggerEvent<'a>
impl<'a> UnwindSafe for TriggerEvent<'a>
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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