pub struct RemoteHelperSession { /* private fields */ }Expand description
A live remote-helper process. The caller may inspect capabilities/listing, then consume the session into either an import or export operation.
Implementations§
Source§impl RemoteHelperSession
impl RemoteHelperSession
pub fn start( spec: RemoteHelperSpec, git_dir: &Path, format: ObjectFormat, ) -> Result<Self>
Sourcepub fn start_for_discovery(
spec: RemoteHelperSpec,
git_dir: &Path,
provisional_format: ObjectFormat,
) -> Result<Self>
pub fn start_for_discovery( spec: RemoteHelperSpec, git_dir: &Path, provisional_format: ObjectFormat, ) -> Result<Self>
Start a helper against a valid provisional repository, allowing its
list response to select the final object format before import begins.
pub fn capabilities(&self) -> &RemoteHelperCapabilities
pub fn object_format(&self) -> ObjectFormat
pub fn list(&mut self) -> Result<Vec<RemoteHelperRef>>
Sourcepub fn set_option(&mut self, name: &str, value: &str) -> Result<bool>
pub fn set_option(&mut self, name: &str, value: &str) -> Result<bool>
Negotiate one standard remote-helper option. Returns false when the
helper reports unsupported.
Trait Implementations§
Source§impl Drop for RemoteHelperSession
impl Drop for RemoteHelperSession
Auto Trait Implementations§
impl Freeze for RemoteHelperSession
impl RefUnwindSafe for RemoteHelperSession
impl Send for RemoteHelperSession
impl Sync for RemoteHelperSession
impl Unpin for RemoteHelperSession
impl UnsafeUnpin for RemoteHelperSession
impl UnwindSafe for RemoteHelperSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more