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