Skip to main content

Maintainer

Trait Maintainer 

Source
pub trait Maintainer {
    // Required methods
    fn gc(&self) -> AppResult<()>;
    fn prune(&self) -> AppResult<()>;
    fn fsck(&self) -> AppResult<()>;
    fn clean(&self, opts: Option<&CleanOptions>) -> AppResult<Vec<String>>;
}
Expand description

Repository maintenance operations.

Required Methods§

Source

fn gc(&self) -> AppResult<()>

Runs repository garbage collection.

Source

fn prune(&self) -> AppResult<()>

Prunes unreachable objects.

Source

fn fsck(&self) -> AppResult<()>

Verifies repository object integrity.

Source

fn clean(&self, opts: Option<&CleanOptions>) -> AppResult<Vec<String>>

Cleans untracked files according to the provided options.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§