#[non_exhaustive]pub enum RefStorageFormat {
Memory,
Files,
Reftable,
Custom(&'static str),
}Expand description
Which physical backend backs a super::RefStore.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Memory
In-memory store for tests and embedders.
Files
Loose refs and packed-refs under a git directory.
Reftable
On-disk reftable stack (extensions.refStorage = reftable).
Custom(&'static str)
A backend outside grit-lib, identified by a short name (for example "sqlite").
Library code treats it like Self::Memory: no files-backend shortcuts apply.
Trait Implementations§
Source§impl Clone for RefStorageFormat
impl Clone for RefStorageFormat
impl Copy for RefStorageFormat
Source§impl Debug for RefStorageFormat
impl Debug for RefStorageFormat
Source§impl Display for RefStorageFormat
impl Display for RefStorageFormat
impl Eq for RefStorageFormat
Source§impl PartialEq for RefStorageFormat
impl PartialEq for RefStorageFormat
impl StructuralPartialEq for RefStorageFormat
Auto Trait Implementations§
impl Freeze for RefStorageFormat
impl RefUnwindSafe for RefStorageFormat
impl Send for RefStorageFormat
impl Sync for RefStorageFormat
impl Unpin for RefStorageFormat
impl UnsafeUnpin for RefStorageFormat
impl UnwindSafe for RefStorageFormat
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