Skip to main content

WorktreeRpc

Trait WorktreeRpc 

Source
pub trait WorktreeRpc: Send + Sync {
    type Ctl: CtlRpc;

Show 23 methods // Required methods fn ctl(&self, fid: u32) -> Self::Ctl; fn walk<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpWalk, ) -> Pin<Box<dyn Future<Output = Result<RWalk>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn open<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpOpen, ) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn create<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpCreate, ) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn read<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpRead, ) -> Pin<Box<dyn Future<Output = Result<RRead>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn write<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpWrite, ) -> Pin<Box<dyn Future<Output = Result<RWrite>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn clunk<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpClunk, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn remove<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpRemove, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn np_stat<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpStatReq, ) -> Pin<Box<dyn Future<Output = Result<RStat>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn wstat<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpWstat, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn flush<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpFlush, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn stage_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn stage_files<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 StageFilesRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn stage_all_including_untracked<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn commit<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CommitRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn commit_with_author<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CommitWithAuthorRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn amend_commit<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 AmendCommitRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn checkout<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CheckoutRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn merge<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 MergeRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn abort_merge<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn continue_merge<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 ContinueMergeRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn quit_merge<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn open_read<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpStatReq, ) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait;
}
Expand description

Generated RPC trait for worktree scope.

Required Associated Types§

Required Methods§

Source

fn ctl(&self, fid: u32) -> Self::Ctl

Source

fn walk<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpWalk, ) -> Pin<Box<dyn Future<Output = Result<RWalk>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn open<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpOpen, ) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpCreate, ) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn read<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpRead, ) -> Pin<Box<dyn Future<Output = Result<RRead>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn write<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpWrite, ) -> Pin<Box<dyn Future<Output = Result<RWrite>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

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

Source

fn np_stat<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpStatReq, ) -> Pin<Box<dyn Future<Output = Result<RStat>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn commit<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CommitRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn commit_with_author<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CommitWithAuthorRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn amend_commit<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 AmendCommitRequest, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn open_read<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 NpStatReq, ) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§