pub struct RepoConfig { /* private fields */ }Expand description
Configuration for opening a repository
Implementations§
Source§impl RepoConfig
impl RepoConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a default RepoConfig.
See RepoConfig::default() for further details.
Sourcepub fn index_offset_cache_max(&mut self, size: usize) -> &mut Self
pub fn index_offset_cache_max(&mut self, size: usize) -> &mut Self
Set the maximum size of the cache that holds object offsets from pack index files.
Trait Implementations§
Source§impl Default for RepoConfig
impl Default for RepoConfig
Source§fn default() -> Self
fn default() -> Self
Creates a default RepoConfig.
The default maximum size of the index offset cache is 64 MiB.
Auto Trait Implementations§
impl Freeze for RepoConfig
impl RefUnwindSafe for RepoConfig
impl Send for RepoConfig
impl Sync for RepoConfig
impl Unpin for RepoConfig
impl UnsafeUnpin for RepoConfig
impl UnwindSafe for RepoConfig
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