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
A loose object database.
Fields
Index
A pack index file
Fields
§
state: IndexState
Whether or not the index is mapped into memory.
MultiIndex
A multi-index file
Fields
§
state: IndexState
Whether or not the index is mapped into memory.
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
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
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