pub struct GraphEventRecorder { /* private fields */ }Expand description
Captures the durable executor’s GraphEvent stream for inspection.
Wraps a CollectingSink; hand its sink to
CompiledGraph::with_event_sink
(or use run_recorded, which wires it for you) so a
run’s events are recorded, then read them back as raw events, kind strings,
or a StreamCollector of higher-level projections.
Implementations§
Source§impl GraphEventRecorder
impl GraphEventRecorder
Sourcepub fn sink(&self) -> Arc<dyn GraphEventSink> ⓘ
pub fn sink(&self) -> Arc<dyn GraphEventSink> ⓘ
An Arc-wrapped event sink to hand to
CompiledGraph::with_event_sink.
Sourcepub fn events(&self) -> Vec<GraphEvent>
pub fn events(&self) -> Vec<GraphEvent>
A snapshot of the recorded events, in emission order.
Sourcepub fn kinds(&self) -> Vec<String>
pub fn kinds(&self) -> Vec<String>
The kind() string of each recorded event, in emission order.
Sourcepub fn collector(&self) -> StreamCollector
pub fn collector(&self) -> StreamCollector
A StreamCollector over the events recorded so far.
Trait Implementations§
Source§impl Clone for GraphEventRecorder
impl Clone for GraphEventRecorder
Source§fn clone(&self) -> GraphEventRecorder
fn clone(&self) -> GraphEventRecorder
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 moreSource§impl Default for GraphEventRecorder
impl Default for GraphEventRecorder
Source§fn default() -> GraphEventRecorder
fn default() -> GraphEventRecorder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphEventRecorder
impl RefUnwindSafe for GraphEventRecorder
impl Send for GraphEventRecorder
impl Sync for GraphEventRecorder
impl Unpin for GraphEventRecorder
impl UnsafeUnpin for GraphEventRecorder
impl UnwindSafe for GraphEventRecorder
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