Struct jujutsu_lib::local_backend::LocalBackend
source · [−]pub struct LocalBackend { /* private fields */ }Implementations
Trait Implementations
sourceimpl Backend for LocalBackend
impl Backend for LocalBackend
fn hash_length(&self) -> usize
fn git_repo(&self) -> Option<Repository>
fn read_file(
&self,
_path: &RepoPath,
id: &FileId
) -> BackendResult<Box<dyn Read>>
fn write_file(
&self,
_path: &RepoPath,
contents: &mut dyn Read
) -> BackendResult<FileId>
fn read_symlink(
&self,
_path: &RepoPath,
id: &SymlinkId
) -> Result<String, BackendError>
fn write_symlink(
&self,
_path: &RepoPath,
target: &str
) -> Result<SymlinkId, BackendError>
fn empty_tree_id(&self) -> &TreeId
fn read_tree(&self, _path: &RepoPath, id: &TreeId) -> BackendResult<Tree>
fn write_tree(&self, _path: &RepoPath, tree: &Tree) -> BackendResult<TreeId>
fn read_commit(&self, id: &CommitId) -> BackendResult<Commit>
fn write_commit(&self, commit: &Commit) -> BackendResult<CommitId>
fn read_conflict(&self, id: &ConflictId) -> BackendResult<Conflict>
fn write_conflict(&self, conflict: &Conflict) -> BackendResult<ConflictId>
Auto Trait Implementations
impl RefUnwindSafe for LocalBackend
impl Send for LocalBackend
impl Sync for LocalBackend
impl Unpin for LocalBackend
impl UnwindSafe for LocalBackend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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