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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".