Struct jj_lib::repo::StoreFactories
source · pub struct StoreFactories { /* private fields */ }
Implementations§
source§impl StoreFactories
impl StoreFactories
pub fn empty() -> Self
pub fn add_backend( &mut self, name: &str, factory: Box<dyn Fn(&UserSettings, &Path) -> Result<Box<dyn Backend>, BackendLoadError>> )
pub fn load_backend( &self, settings: &UserSettings, store_path: &Path ) -> Result<Box<dyn Backend>, StoreLoadError>
pub fn add_op_store( &mut self, name: &str, factory: Box<dyn Fn(&UserSettings, &Path) -> Box<dyn OpStore>> )
pub fn load_op_store( &self, settings: &UserSettings, store_path: &Path ) -> Result<Box<dyn OpStore>, StoreLoadError>
pub fn add_op_heads_store( &mut self, name: &str, factory: Box<dyn Fn(&UserSettings, &Path) -> Box<dyn OpHeadsStore>> )
pub fn load_op_heads_store( &self, settings: &UserSettings, store_path: &Path ) -> Result<Box<dyn OpHeadsStore>, StoreLoadError>
pub fn add_index_store( &mut self, name: &str, factory: Box<dyn Fn(&UserSettings, &Path) -> Result<Box<dyn IndexStore>, BackendLoadError>> )
pub fn load_index_store( &self, settings: &UserSettings, store_path: &Path ) -> Result<Box<dyn IndexStore>, StoreLoadError>
pub fn add_submodule_store( &mut self, name: &str, factory: Box<dyn Fn(&UserSettings, &Path) -> Box<dyn SubmoduleStore>> )
pub fn load_submodule_store( &self, settings: &UserSettings, store_path: &Path ) -> Result<Box<dyn SubmoduleStore>, StoreLoadError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StoreFactories
impl !Send for StoreFactories
impl !Sync for StoreFactories
impl Unpin for StoreFactories
impl !UnwindSafe for StoreFactories
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