pub enum Record {
LooseObjectDatabase {
objects_directory: PathBuf,
num_objects: usize,
},
Index {
path: PathBuf,
state: IndexState,
},
MultiIndex {
path: PathBuf,
state: IndexState,
},
Empty,
}
Expand description
A record of a structural element of an object database.
Variants
LooseObjectDatabase
Fields
objects_directory: PathBuf
The root of the object database.
num_objects: usize
The amount of object files.
A loose object database.
Index
Fields
path: PathBuf
The location of the index file,
state: IndexState
Whether or not the index is mapped into memory.
A pack index file
MultiIndex
Fields
path: PathBuf
The location of the multi-index file,
state: IndexState
Whether or not the index is mapped into memory.
A multi-index file
Empty
An empty slot was encountered, this is possibly happening as the ODB changes during query with a file being removed.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Record
impl StructuralEq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more