Skip to main content

RemoteHelperPlumbing

Trait RemoteHelperPlumbing 

Source
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§

Source

fn fast_import(&mut self, git_dir: &Path, stream: &[u8]) -> Result<()>

Install one helper-produced fast-import stream into git_dir.

Source

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".

Implementors§