pub struct MeterEvent<'a> {
pub tenant: Option<&'a str>,
pub op: &'a str,
pub outcome: Outcome,
}Expand description
One metered event: which tenant ran which op, and whether it succeeded.
Fields§
§tenant: Option<&'a str>The resolved tenant label, if the resolver knew it.
op: &'a strThe verb name ("encode", "recall", …).
outcome: OutcomeSuccess or failure.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MeterEvent<'a>
impl<'a> RefUnwindSafe for MeterEvent<'a>
impl<'a> Send for MeterEvent<'a>
impl<'a> Sync for MeterEvent<'a>
impl<'a> Unpin for MeterEvent<'a>
impl<'a> UnsafeUnpin for MeterEvent<'a>
impl<'a> UnwindSafe for MeterEvent<'a>
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