pub struct LiveFile {
pub name: String,
pub size: usize,
pub level: i32,
pub start_key: Option<Vec<u8>>,
pub end_key: Option<Vec<u8>>,
pub num_entries: u64,
pub num_deletions: u64,
}
Expand description
The metadata that describes a SST file
Fields
name: String
Name of the file
size: usize
Size of the file
level: i32
Level at which this file resides
start_key: Option<Vec<u8>>
Smallest user defined key in the file
end_key: Option<Vec<u8>>
Largest user defined key in the file
num_entries: u64
Number of entries/alive keys in the file
num_deletions: u64
Number of deletions/tomb key(s) in the file
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LiveFile
impl Send for LiveFile
impl Sync for LiveFile
impl Unpin for LiveFile
impl UnwindSafe for LiveFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more