Skip to main content

WorkspaceGitStashProvider

Trait WorkspaceGitStashProvider 

Source
pub trait WorkspaceGitStashProvider: Send + Sync {
    // Required methods
    fn list_stashes<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<WorkspaceGitStash>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn stash<'life0, 'async_trait>(
        &'life0 self,
        request: WorkspaceGitStashRequest,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Optional Git stash operations.

Browser-side libraries such as isomorphic-git do not implement stash; backends that cannot stash simply do not implement this trait.

Required Methods§

Source

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

Source

fn stash<'life0, 'async_trait>( &'life0 self, request: WorkspaceGitStashRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + 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§