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
Fields
multiplier: f32
1.0 means no safety, 1.1 means 10% more slots than needed
minimum: usize
The minimum amount of slots to assume
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 RefUnwindSafe for Slots
impl Send for Slots
impl Sync for Slots
impl Unpin for Slots
impl UnwindSafe for Slots
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more