pub struct SessionStats {
pub started_at: Instant,
pub total_requests: AtomicU64,
pub total_images: AtomicU64,
pub total_images_modified: AtomicU64,
pub total_bytes_saved: AtomicU64,
pub token_savings: Mutex<TokenSavingsAccum>,
}Expand description
In-memory session statistics (mirrors TS SessionStats).
Fields§
§started_at: Instant§total_requests: AtomicU64§total_images: AtomicU64§total_images_modified: AtomicU64§total_bytes_saved: AtomicU64§token_savings: Mutex<TokenSavingsAccum>Implementations§
Source§impl SessionStats
impl SessionStats
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SessionStats
impl RefUnwindSafe for SessionStats
impl Send for SessionStats
impl Sync for SessionStats
impl Unpin for SessionStats
impl UnsafeUnpin for SessionStats
impl UnwindSafe for SessionStats
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