Struct rudolfs::LocalServerBuilder
source · [−]pub struct LocalServerBuilder { /* private fields */ }
Implementations
sourceimpl LocalServerBuilder
impl LocalServerBuilder
sourcepub fn new(path: PathBuf, key: [u8; 32]) -> Self
pub fn new(path: PathBuf, key: [u8; 32]) -> Self
Creates a local server builder. path
is the path to the folder where
all of the LFS data will be stored.
sourcepub fn cache(&mut self, cache: Cache) -> &mut Self
pub fn cache(&mut self, cache: Cache) -> &mut Self
Sets the cache to use. If not specified, then no local disk cache is used. It is uncommon to want to use this when the object storage is already local. However, a cache may be useful when the data storage path is on a mounted network file system. In such a case, the network file system could be slow and the local disk storage could be fast.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LocalServerBuilder
impl Send for LocalServerBuilder
impl Sync for LocalServerBuilder
impl Unpin for LocalServerBuilder
impl UnwindSafe for LocalServerBuilder
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