Trait StreamExecutorStats

Source
pub trait StreamExecutorStats: Debug {
    // Required methods
    fn executor_name(&self) -> &String;
    fn futures_timeout(&self) -> &Duration;
    fn creation_time(&self) -> &Instant;
    fn executor_status(&self) -> &AtomicExecutorStatus;
    fn execution_start_delta_nanos(&self) -> u64;
    fn execution_finish_delta_nanos(&self) -> u64;
    fn ok_events_avg_future_duration(&self) -> &AtomicIncrementalAverage64;
    fn timed_out_events_avg_future_duration(
        &self,
    ) -> &AtomicIncrementalAverage64;
    fn failed_events_avg_future_duration(&self) -> &AtomicIncrementalAverage64;
    fn report_scheduled_to_finish(&self);
}
Expand description

The trait to be passed along after the executor has been started

Required Methods§

Source

fn executor_name(&self) -> &String

Source

fn futures_timeout(&self) -> &Duration

Source

fn creation_time(&self) -> &Instant

Source

fn executor_status(&self) -> &AtomicExecutorStatus

Source

fn execution_start_delta_nanos(&self) -> u64

Source

fn execution_finish_delta_nanos(&self) -> u64

Source

fn ok_events_avg_future_duration(&self) -> &AtomicIncrementalAverage64

Source

fn timed_out_events_avg_future_duration(&self) -> &AtomicIncrementalAverage64

Source

fn failed_events_avg_future_duration(&self) -> &AtomicIncrementalAverage64

Source

fn report_scheduled_to_finish(&self)

Tells this executor that its Stream will be artificially ended – so to cause it to cease its execution

Implementors§

Source§

impl<const INSTRUMENTS_USIZE: usize> StreamExecutorStats for StreamExecutor<INSTRUMENTS_USIZE>