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 query_commits( &self, query: CommitQuery, ) -> Result<CommitQueryResult>
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) -> Result<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 rich_worktree_status( &self, options: StatusOptions, ) -> Result<RichWorktreeStatus>
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>>
pub async fn worktrees(&self) -> Result<Vec<WorktreeInfo>>
pub async fn ahead_behind( &self, local: CommitId, upstream: CommitId, ) -> Result<AheadBehind>
pub async fn branch_ahead_behind( &self, branch: String, ) -> Result<Option<AheadBehind>>
pub async fn repository_info(&self) -> Result<RepositoryInfo>
pub async fn branch_tracking( &self, branch: String, ) -> Result<BranchTrackingInfo>
pub async fn local_branch_tracking(&self) -> Result<Vec<BranchTrackingInfo>>
pub async fn is_merged_into( &self, branch: String, target: String, ) -> Result<bool>
pub async fn operation_state(&self) -> Result<OperationState>
pub async fn unmerged_paths(&self) -> Result<Vec<PathBuf>>
pub async fn conflict_summary(&self) -> Result<ConflictSummary>
pub async fn blame_at( &self, path: PathBuf, commit_id: CommitId, ) -> Result<Vec<BlameEntry>>
pub async fn tree_at_commit( &self, commit_id: CommitId, ) -> Result<Vec<TreeEntry>>
pub async fn tree_at_path( &self, commit_id: CommitId, path: PathBuf, ) -> Result<Vec<TreeEntry>>
pub async fn remotes(&self) -> Result<Vec<RemoteInfo>>
pub async fn references(&self) -> Result<Vec<RefInfo>>
pub async fn references_by_kind(&self, kind: RefKind) -> Result<Vec<RefInfo>>
pub async fn submodule_summaries(&self) -> Result<Vec<SubmoduleSummary>>
pub async fn stash_detail(&self, index: usize) -> Result<StashDetail>
pub async fn stash_diff(&self, index: usize) -> Result<DiffSummary>
pub async fn worktree_details(&self) -> Result<Vec<WorktreeDetail>>
pub async fn snapshot( &self, request: SnapshotRequest, ) -> Result<RepositorySnapshot>
pub async fn diff_entries( &self, from: CommitId, to: CommitId, options: DiffOptions, ) -> Result<Vec<DiffEntry>>
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 (const: unstable) · 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 !RefUnwindSafe for AsyncRepository
impl !UnwindSafe for AsyncRepository
impl Freeze for AsyncRepository
impl Send for AsyncRepository
impl Sync for AsyncRepository
impl Unpin for AsyncRepository
impl UnsafeUnpin 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