pub enum FileType {
Show 13 variants
WalFile,
DBLockFile,
TableFile,
DescriptorFile,
CurrentFile,
TempFile,
InfoLogFile,
MetaDatabase,
IdentityFile,
OptionsFile,
BlobFile,
CompactionProgressFile,
Unknown,
}Expand description
The role a file plays in a DB directory.
Mirrors rocksdb::FileType from include/rocksdb/types.h. Values RocksDB
adds in future versions decode as FileType::Unknown.
Variants§
WalFile
Write-ahead log, <number>.log.
DBLockFile
The LOCK file guarding single-process access.
TableFile
SST table file, <number>.sst (or .ldb for LevelDB-era files).
DescriptorFile
A MANIFEST-<number> file.
CurrentFile
The CURRENT file naming the live manifest.
TempFile
A <number>.dbtmp file written while another file is being staged.
InfoLogFile
A LOG or LOG.old.<number> info log.
MetaDatabase
A METADB-<number> metadata database.
IdentityFile
The IDENTITY file holding the DB’s unique id.
OptionsFile
An OPTIONS-<number> file.
BlobFile
Blob file, <number>.blob.
CompactionProgressFile
A COMPACTION_PROGRESS-<timestamp> file.
Unknown
A value this build of the crate does not know about.
Implementations§
Trait Implementations§
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnsafeUnpin for FileType
impl UnwindSafe for FileType
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