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
A loose object database.
Index
Fields
§
state: IndexState
Whether or not the index is mapped into memory.
A pack index file
MultiIndex
Fields
§
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§
source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
source§fn 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
source§impl PartialEq for Record
impl PartialEq for Record
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§
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