pub struct Metrics {
pub input: u64,
pub output: u64,
pub cache_creation: u64,
pub cache_read: u64,
pub cost: f64,
}Expand description
The four token buckets plus derived total and cost. Accumulates cleanly.
Fields§
§input: u64§output: u64§cache_creation: u64§cache_read: u64§cost: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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