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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)