Skip to main content

RecoveryGit

Trait RecoveryGit 

Source
pub trait RecoveryGit: Git {
    // Required method
    fn reconcile(
        &self,
        participant: &Participant,
        task: &str,
        control: &Control,
    ) -> impl Future<Output = Result<RecoveryObservation, Problem>> + Send;

    // Provided methods
    fn recovery_relationship(
        &self,
        _participant: &Participant,
        _control: &Control,
    ) -> impl Future<Output = Result<Option<Relationship>, Problem>> + Send { ... }
    fn repair_relationship(
        &self,
        _repository: &Repository,
        _participant: &Participant,
        _control: &Control,
    ) -> impl Future<Output = Result<(), Problem>> + Send { ... }
}
Expand description

Git observations and repair operations available during task recovery.

Required Methods§

Source

fn reconcile( &self, participant: &Participant, task: &str, control: &Control, ) -> impl Future<Output = Result<RecoveryObservation, Problem>> + Send

Inspect actual participant placement before resuming recorded work.

Provided Methods§

Source

fn recovery_relationship( &self, _participant: &Participant, _control: &Control, ) -> impl Future<Output = Result<Option<Relationship>, Problem>> + Send

Discover an identity-verified location needing repair without changing Git.

Source

fn repair_relationship( &self, _repository: &Repository, _participant: &Participant, _control: &Control, ) -> impl Future<Output = Result<(), Problem>> + Send

Ask Git to reconcile verified backing and linked worktree paths.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§