pub struct Stats {
pub path: PathBuf,
pub version: u8,
pub num_keys: u32,
pub num_objects: u32,
pub index_offset: u64,
pub data_offset: u64,
pub file_size: u64,
pub file_crc32: u32,
}Expand description
Metadata describing an open .fsdb file.
Field-for-field the same information Python’s FuseReader.stats() returns.
Fields§
§path: PathBufPath the reader was opened from.
version: u8On-disk format version (always crate::core::format::VERSION for files this build can read).
num_keys: u32Number of index entries.
num_objects: u32Number of unique objects in the data section.
index_offset: u64Byte offset where the index section starts.
data_offset: u64Byte offset where the data section starts (always the header size).
file_size: u64Total file size in bytes.
file_crc32: u32Whole-file CRC32 as stored in the header.
Implementations§
Trait Implementations§
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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