pub struct GitStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Store for GitStore
impl Store for GitStore
fn hash_length(&self) -> usize
fn git_repo(&self) -> Option<Repository>
fn read_file( &self, _path: &FileRepoPath, id: &FileId, ) -> StoreResult<Box<dyn Read>>
fn write_file( &self, _path: &FileRepoPath, contents: &mut dyn Read, ) -> StoreResult<FileId>
fn read_symlink( &self, _path: &FileRepoPath, id: &SymlinkId, ) -> Result<String, StoreError>
fn write_symlink( &self, _path: &FileRepoPath, target: &str, ) -> Result<SymlinkId, StoreError>
fn empty_tree_id(&self) -> &TreeId
fn read_tree(&self, _path: &DirRepoPath, id: &TreeId) -> StoreResult<Tree>
fn write_tree( &self, _path: &DirRepoPath, contents: &Tree, ) -> StoreResult<TreeId>
fn read_commit(&self, id: &CommitId) -> StoreResult<Commit>
fn write_commit(&self, contents: &Commit) -> StoreResult<CommitId>
fn read_conflict(&self, id: &ConflictId) -> StoreResult<Conflict>
fn write_conflict(&self, conflict: &Conflict) -> StoreResult<ConflictId>
Auto Trait Implementations§
impl !Freeze for GitStore
impl RefUnwindSafe for GitStore
impl Send for GitStore
impl Sync for GitStore
impl Unpin for GitStore
impl UnwindSafe for GitStore
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