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.