Skip to main content

WorkspaceGitWorktreeProvider

Trait WorkspaceGitWorktreeProvider 

Source
pub trait WorkspaceGitWorktreeProvider: Send + Sync {
    // Required methods
    fn list_worktrees<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<WorkspaceGitWorktree>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_worktree<'life0, 'async_trait>(
        &'life0 self,
        request: WorkspaceGitCreateWorktreeRequest,
    ) -> Pin<Box<dyn Future<Output = Result<WorkspaceGitWorktreeMutation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn remove_worktree<'life0, 'async_trait>(
        &'life0 self,
        request: WorkspaceGitRemoveWorktreeRequest,
    ) -> Pin<Box<dyn Future<Output = Result<WorkspaceGitWorktreeMutation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Optional Git worktree operations.

Worktrees are a local-filesystem concept and are typically not supported by remote or browser-backed git providers.

Required Methods§

Source

fn list_worktrees<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<WorkspaceGitWorktree>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_worktree<'life0, 'async_trait>( &'life0 self, request: WorkspaceGitCreateWorktreeRequest, ) -> Pin<Box<dyn Future<Output = Result<WorkspaceGitWorktreeMutation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn remove_worktree<'life0, 'async_trait>( &'life0 self, request: WorkspaceGitRemoveWorktreeRequest, ) -> Pin<Box<dyn Future<Output = Result<WorkspaceGitWorktreeMutation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§