Trait rill_protocol::data::Metric [−][src]
Immutable state of a data flow.
Immutable state of a data flow.
type State: DataFraction[src]type Event: DataFraction[src]fn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]fn pack_metric(&self) -> Result<PackedMetric, Error>[src]fn unpack_metric(data: &PackedMetric) -> Result<Self, Error>[src]fn pack_delta(delta: &[TimedEvent<Self::Event>]) -> Result<PackedDelta, Error>[src]fn unpack_delta(data: &PackedDelta) -> Result<Delta<Self::Event>, Error>[src]fn pack_state(state: &Self::State) -> Result<PackedState, Error>[src]fn unpack_state(data: &PackedState) -> Result<Self::State, Error>[src]impl Metric for CounterMetric[src]type State = CounterStatetype Event = CounterEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]impl Metric for DictMetric[src]type State = DictStatetype Event = DictEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]impl Metric for GaugeMetric[src]type State = GaugeStatetype Event = GaugeEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]impl Metric for HistogramMetric[src]type State = HistogramStatetype Event = HistogramEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]impl Metric for LoggerMetric[src]type State = LoggerStatetype Event = LoggerEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]impl Metric for PulseMetric[src]type State = PulseStatetype Event = PulseEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]impl Metric for TableMetric[src]type State = TableStatetype Event = TableEventfn stream_type() -> StreamType[src]fn apply(&self, state: &mut Self::State, event: TimedEvent<Self::Event>)[src]