#[non_exhaustive]pub struct CacheReceipt {
pub enabled: bool,
pub limit_bytes: u64,
pub before_bytes: u64,
pub remaining_bytes: u64,
pub removed_records: u64,
pub removed_transactions: u64,
pub over_budget: bool,
}Expand description
Historical receipt of one atomic cache maintenance step. Later admissions, pins and reorgs can change usage. Protected evidence and SQLite/WAL overhead are outside this metric; disabled enforcement does not imply an empty archive.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: bool§limit_bytes: u64§before_bytes: u64§remaining_bytes: u64§removed_records: u64§removed_transactions: u64§over_budget: boolTrait Implementations§
Source§impl Clone for CacheReceipt
impl Clone for CacheReceipt
Source§impl Debug for CacheReceipt
impl Debug for CacheReceipt
Source§impl Default for CacheReceipt
impl Default for CacheReceipt
Source§impl<'de> Deserialize<'de> for CacheReceipt
impl<'de> Deserialize<'de> for CacheReceipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CacheReceipt
Source§impl PartialEq for CacheReceipt
impl PartialEq for CacheReceipt
Source§impl Serialize for CacheReceipt
impl Serialize for CacheReceipt
impl StructuralPartialEq for CacheReceipt
Auto Trait Implementations§
impl Freeze for CacheReceipt
impl RefUnwindSafe for CacheReceipt
impl Send for CacheReceipt
impl Sync for CacheReceipt
impl Unpin for CacheReceipt
impl UnsafeUnpin for CacheReceipt
impl UnwindSafe for CacheReceipt
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