Struct ipfs_sqlite_block_store::StoreStats
source · [−]pub struct StoreStats { /* private fields */ }
Implementations
sourceimpl StoreStats
impl StoreStats
sourcepub fn used_pages(&self) -> u64
pub fn used_pages(&self) -> u64
Number of used pages in the SQLite DB
Multiply this with page_size
to obtain an upper bound
on how much space is actually used. The value returned by size
will always be smaller than this, since it only counts net block data, without
overhead. A large difference suggests the need for calling vacuum
.
sourcepub fn free_pages(&self) -> u64
pub fn free_pages(&self) -> u64
Number of unused pages in the SQLite DB
The DB file can be shrunk by at least this page count by calling vacuum
, which often is
a long-running procedure.
Trait Implementations
sourceimpl Clone for StoreStats
impl Clone for StoreStats
sourcefn clone(&self) -> StoreStats
fn clone(&self) -> StoreStats
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StoreStats
impl Debug for StoreStats
sourceimpl Default for StoreStats
impl Default for StoreStats
sourcefn default() -> StoreStats
fn default() -> StoreStats
Returns the “default value” for a type. Read more
sourceimpl PartialEq<StoreStats> for StoreStats
impl PartialEq<StoreStats> for StoreStats
sourcefn eq(&self, other: &StoreStats) -> bool
fn eq(&self, other: &StoreStats) -> bool
impl Eq for StoreStats
impl StructuralEq for StoreStats
impl StructuralPartialEq for StoreStats
Auto Trait Implementations
impl RefUnwindSafe for StoreStats
impl Send for StoreStats
impl Sync for StoreStats
impl Unpin for StoreStats
impl UnwindSafe for StoreStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more