pub struct AsyncRepository { /* private fields */ }Expand description
Async wrapper around Repository.
Cloneable. Each method clones the inner Arc<Repository> and dispatches
to tokio::task::spawn_blocking so that blocking VCS I/O does not stall
the async executor.
Implementations§
Source§impl AsyncRepository
impl AsyncRepository
pub async fn status_digest(&self) -> Result<StatusDigest>
pub async fn local_branches(&self) -> Result<Vec<BranchInfo>>
pub async fn remote_branches(&self) -> Result<Vec<BranchInfo>>
pub async fn list_commits(&self) -> Result<Vec<CommitInfo>>
pub async fn list_commits_sorted( &self, order: SortOrder, ) -> Result<Vec<CommitInfo>>
pub async fn log_since( &self, since: SystemTime, until: SystemTime, ) -> Result<Vec<CommitInfo>>
pub async fn find_commit(&self, id: CommitId) -> Result<CommitInfo>
pub async fn create_tag(&self, name: String) -> Result<()>
pub async fn create_annotated_tag( &self, name: String, message: String, ) -> Result<()>
pub async fn delete_tag(&self, name: String) -> Result<()>
pub async fn diff(&self, from: CommitId, to: CommitId) -> Result<DiffSummary>
pub async fn remote_url(&self, name: String) -> Option<String>
pub async fn is_dirty(&self) -> Result<bool>
pub async fn merge_base( &self, a: CommitId, b: CommitId, ) -> Result<Option<CommitId>>
pub async fn is_ancestor( &self, candidate: CommitId, descendant: CommitId, ) -> Result<bool>
pub async fn blame(&self, path: PathBuf) -> Result<Vec<BlameEntry>>
pub async fn worktree_status(&self) -> Result<WorktreeStatus>
pub async fn file_at_commit( &self, path: PathBuf, commit_id: CommitId, ) -> Result<Vec<u8>>
pub async fn submodules(&self) -> Result<Vec<SubmoduleInfo>>
pub async fn stash_entries(&self) -> Result<Vec<StashEntry>>
Trait Implementations§
Source§impl Clone for AsyncRepository
impl Clone for AsyncRepository
Source§fn clone(&self) -> AsyncRepository
fn clone(&self) -> AsyncRepository
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AsyncRepository
impl !RefUnwindSafe for AsyncRepository
impl Send for AsyncRepository
impl Sync for AsyncRepository
impl Unpin for AsyncRepository
impl UnsafeUnpin for AsyncRepository
impl !UnwindSafe for AsyncRepository
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