pub struct FetchStats {
pub total: AtomicU64,
pub success: AtomicU64,
pub unavailable: AtomicU64,
pub unreachable: AtomicU64,
pub protected: AtomicU64,
pub conditional_hits: AtomicU64,
pub bytes_fetched: AtomicU64,
pub fetch_time_ms: AtomicU64,
pub min_fetch_time_ms: AtomicU64,
pub max_fetch_time_ms: AtomicU64,
}Expand description
Fetch statistics with detailed metrics
Fields§
§total: AtomicU64Total fetches
success: AtomicU64Successful fetches (200)
Unavailable (4xx)
unreachable: AtomicU64Unreachable (5xx/network)
protected: AtomicU64Protected (401/403)
conditional_hits: AtomicU64Conditional GET hits (304 Not Modified)
bytes_fetched: AtomicU64Total bytes fetched
fetch_time_ms: AtomicU64Total fetch time in milliseconds
min_fetch_time_ms: AtomicU64Minimum fetch time in milliseconds
max_fetch_time_ms: AtomicU64Maximum fetch time in milliseconds
Implementations§
Source§impl FetchStats
impl FetchStats
Sourcepub fn snapshot(&self) -> FetchStatsSnapshot
pub fn snapshot(&self) -> FetchStatsSnapshot
Get snapshot
Trait Implementations§
Source§impl Debug for FetchStats
impl Debug for FetchStats
Source§impl Default for FetchStats
impl Default for FetchStats
Source§fn default() -> FetchStats
fn default() -> FetchStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FetchStats
impl RefUnwindSafe for FetchStats
impl Send for FetchStats
impl Sync for FetchStats
impl Unpin for FetchStats
impl UnwindSafe for FetchStats
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