pub struct OwnedWalFile { /* private fields */ }Expand description
A WAL file handle that owns its own copy of the metadata.
This is what asking for the current WAL file gives back: db/c.cc allocates
a fresh rocksdb_wal_file_t for it rather than pointing into a listing, so
it has to be freed on its own. Borrow it as a WalFile with
as_wal_file to share code with entries that came out
of a WalFiles listing.
Implementations§
Source§impl OwnedWalFile
impl OwnedWalFile
Sourcepub fn as_wal_file(&self) -> WalFile<'_>
pub fn as_wal_file(&self) -> WalFile<'_>
Borrows this handle as a WalFile view.
Sourcepub fn path_name(&self) -> &[u8] ⓘ
pub fn path_name(&self) -> &[u8] ⓘ
See WalFile::path_name.
Sourcepub fn path_name_lossy(&self) -> Cow<'_, str>
pub fn path_name_lossy(&self) -> Cow<'_, str>
Sourcepub fn log_number(&self) -> u64
pub fn log_number(&self) -> u64
See WalFile::log_number.
Sourcepub fn size_file_bytes(&self) -> u64
pub fn size_file_bytes(&self) -> u64
Sourcepub fn start_sequence(&self) -> u64
pub fn start_sequence(&self) -> u64
Sourcepub fn file_type(&self) -> WalFileType
pub fn file_type(&self) -> WalFileType
See WalFile::file_type.
Trait Implementations§
Source§impl Debug for OwnedWalFile
impl Debug for OwnedWalFile
Source§impl Drop for OwnedWalFile
impl Drop for OwnedWalFile
impl Send for OwnedWalFile
impl Sync for OwnedWalFile
Auto Trait Implementations§
impl Freeze for OwnedWalFile
impl RefUnwindSafe for OwnedWalFile
impl Unpin for OwnedWalFile
impl UnsafeUnpin for OwnedWalFile
impl UnwindSafe for OwnedWalFile
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