pub struct OperatorMetrics { /* private fields */ }Expand description
Operator-stage handles (etl_operator_*).
Implementations§
Source§impl OperatorMetrics
impl OperatorMetrics
Sourcepub fn new(labels: &ComponentLabels) -> OperatorMetrics
pub fn new(labels: &ComponentLabels) -> OperatorMetrics
Resolve all operator handles.
Sourcepub fn batch(&self, records_in: u64, records_out: u64, d: Duration)
pub fn batch(&self, records_in: u64, records_out: u64, d: Duration)
Record one processed batch.
Sourcepub fn errors(&self, class: ErrorClass, n: u64)
pub fn errors(&self, class: ErrorClass, n: u64)
Count user-code errors of one taxonomy class.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperatorMetrics
impl !RefUnwindSafe for OperatorMetrics
impl Send for OperatorMetrics
impl Sync for OperatorMetrics
impl Unpin for OperatorMetrics
impl UnsafeUnpin for OperatorMetrics
impl !UnwindSafe for OperatorMetrics
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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