pub enum Slots {
Given(u16),
AsNeededByDiskState {
multiplier: f32,
minimum: usize,
},
}
Expand description
Configures the amount of slots in the index slotmap, which is fixed throughout the existence of the store.
Variants§
Given(u16)
The amount of slots to use, that is the total amount of indices we can hold at a time. Using this has the advantage of avoiding an initial directory listing of the repository, and is recommended on the server side where the repository setup is controlled.
Note that this won’t affect their packs, as each index can have one or more packs associated with it.
AsNeededByDiskState
Compute the amount of slots needed, as probably best used on the client side where a variety of repositories is encountered.
Trait Implementations§
impl Copy for Slots
Auto Trait Implementations§
impl Freeze for Slots
impl RefUnwindSafe for Slots
impl Send for Slots
impl Sync for Slots
impl Unpin for Slots
impl UnwindSafe for Slots
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)