pub struct DatabaseStats {
pub total_hashes: usize,
pub threat_lists: usize,
pub memory_usage: usize,
pub last_update: Option<Instant>,
pub is_stale: bool,
}
Expand description
Database statistics
Fields§
§total_hashes: usize
Total number of hash prefixes in the database
threat_lists: usize
Number of threat lists
memory_usage: usize
Estimated memory usage in bytes
last_update: Option<Instant>
Last update time
is_stale: bool
Whether the database is stale
Trait Implementations§
Source§impl Clone for DatabaseStats
impl Clone for DatabaseStats
Source§fn clone(&self) -> DatabaseStats
fn clone(&self) -> DatabaseStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DatabaseStats
impl Debug for DatabaseStats
Source§impl Default for DatabaseStats
impl Default for DatabaseStats
Source§fn default() -> DatabaseStats
fn default() -> DatabaseStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatabaseStats
impl RefUnwindSafe for DatabaseStats
impl Send for DatabaseStats
impl Sync for DatabaseStats
impl Unpin for DatabaseStats
impl UnwindSafe for DatabaseStats
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