pub struct LockboxInspector<'a, State = Writable> { /* private fields */ }Expand description
Read-only diagnostics for an opened lockbox.
The inspector intentionally exposes no mutation methods. It is a separate
handle so page/cache details do not sit on the main high-level Lockbox
API.
Implementations§
Source§impl<State> LockboxInspector<'_, State>
impl<State> LockboxInspector<'_, State>
Sourcepub fn storage_len(&self) -> Result<u64, Error>
pub fn storage_len(&self) -> Result<u64, Error>
Return the current persisted storage length in bytes.
Returns Error::Io if the backing storage cannot report its length.
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Return decoded-page cache usage and hit/miss counters.
Sourcepub fn inspect_pages(&self) -> Result<Vec<PageInspection>, Error>
pub fn inspect_pages(&self) -> Result<Vec<PageInspection>, Error>
Return page-level metadata useful for diagnostics and visualization.
Returns storage or authentication errors if lockbox bytes cannot be materialized for inspection.
Sourcepub fn recovery_report(&self) -> RecoveryReport
pub fn recovery_report(&self) -> RecoveryReport
Scan the current persisted storage and return a recovery report.
Auto Trait Implementations§
impl<'a, State = Writable> !RefUnwindSafe for LockboxInspector<'a, State>
impl<'a, State = Writable> !Send for LockboxInspector<'a, State>
impl<'a, State = Writable> !Sync for LockboxInspector<'a, State>
impl<'a, State = Writable> !UnwindSafe for LockboxInspector<'a, State>
impl<'a, State> Freeze for LockboxInspector<'a, State>
impl<'a, State> Unpin for LockboxInspector<'a, State>
impl<'a, State> UnsafeUnpin for LockboxInspector<'a, State>
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