Skip to main content

GitInspector

Trait GitInspector 

Source
pub trait GitInspector: Send + Sync {
    // Required methods
    fn status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: GitStatusRequest,
        context: &'life1 RunContext,
    ) -> Pin<Box<dyn Future<Output = Result<GitStatus, GitError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn diff<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: GitDiffRequest,
        context: &'life1 RunContext,
    ) -> Pin<Box<dyn Future<Output = Result<WorkspaceDiff, GitError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn changed_files<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: GitChangedFilesRequest,
        context: &'life1 RunContext,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<GitChangedFile>, GitError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn head<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 RunContext,
    ) -> Pin<Box<dyn Future<Output = Result<Option<GitHead>, GitError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

Read-only git inspector.

Required Methods§

Source

fn status<'life0, 'life1, 'async_trait>( &'life0 self, request: GitStatusRequest, context: &'life1 RunContext, ) -> Pin<Box<dyn Future<Output = Result<GitStatus, GitError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Returns git status.

Source

fn diff<'life0, 'life1, 'async_trait>( &'life0 self, request: GitDiffRequest, context: &'life1 RunContext, ) -> Pin<Box<dyn Future<Output = Result<WorkspaceDiff, GitError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Returns git diff as a workspace diff summary.

Source

fn changed_files<'life0, 'life1, 'async_trait>( &'life0 self, request: GitChangedFilesRequest, context: &'life1 RunContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<GitChangedFile>, GitError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Returns changed files from git status.

Source

fn head<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 RunContext, ) -> Pin<Box<dyn Future<Output = Result<Option<GitHead>, GitError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Returns current git head.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§