pub trait RemoteHelperPlumbing {
// Required methods
fn fast_import(&mut self, git_dir: &Path, stream: &[u8]) -> Result<()>;
fn fast_export(
&mut self,
request: RemoteHelperExportRequest<'_>,
) -> Result<Vec<u8>>;
}Expand description
Injected native plumbing used by import/export remote helpers.
The CLI implementation re-enters the currently running Sley executable; embedders can provide in-process implementations without depending on an installed Git executable.
Required Methods§
Sourcefn fast_import(&mut self, git_dir: &Path, stream: &[u8]) -> Result<()>
fn fast_import(&mut self, git_dir: &Path, stream: &[u8]) -> Result<()>
Install one helper-produced fast-import stream into git_dir.
Sourcefn fast_export(
&mut self,
request: RemoteHelperExportRequest<'_>,
) -> Result<Vec<u8>>
fn fast_export( &mut self, request: RemoteHelperExportRequest<'_>, ) -> Result<Vec<u8>>
Produce the fast-export stream requested by the helper engine.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".