pub struct LiveFilesStorageInfo { /* private fields */ }Expand description
Everything needed to make a consistent copy of a DB: SST and blob files, WALs, the MANIFEST, CURRENT and OPTIONS.
This is a snapshot. It does not pin the files on disk, so a file listed here can still be deleted by a background job unless the DB is otherwise held still.
Implementations§
Source§impl LiveFilesStorageInfo
impl LiveFilesStorageInfo
Sourcepub fn get(&self, index: usize) -> Option<LiveFileStorageInfoEntry<'_>>
pub fn get(&self, index: usize) -> Option<LiveFileStorageInfoEntry<'_>>
Borrows the entry at index, or None if out of range.
The bounds check matters: the underlying C accessors index a
std::vector without checking, so an out of range index there is
undefined behaviour.
Sourcepub fn iter(&self) -> LiveFilesStorageInfoIter<'_> ⓘ
pub fn iter(&self) -> LiveFilesStorageInfoIter<'_> ⓘ
Iterates over every entry.
Trait Implementations§
Source§impl Debug for LiveFilesStorageInfo
impl Debug for LiveFilesStorageInfo
Source§impl Drop for LiveFilesStorageInfo
impl Drop for LiveFilesStorageInfo
Source§impl<'a> IntoIterator for &'a LiveFilesStorageInfo
impl<'a> IntoIterator for &'a LiveFilesStorageInfo
impl Send for LiveFilesStorageInfo
impl Sync for LiveFilesStorageInfo
Auto Trait Implementations§
impl Freeze for LiveFilesStorageInfo
impl RefUnwindSafe for LiveFilesStorageInfo
impl Unpin for LiveFilesStorageInfo
impl UnsafeUnpin for LiveFilesStorageInfo
impl UnwindSafe for LiveFilesStorageInfo
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