//! gc Operation method trait for the module. use crate::gc::types::{FsckResult, GcResult, PackStats, RepoStats}; /// Operation trait for repository maintenance. pub trait GcOps { /// Collect repository statistics. fn gc_stats(&self) -> Result; /// Run garbage collection. fn gc_gc(&self) -> Result; /// Verify object integrity. fn gc_fsck(&self) -> Result; /// Object count. fn gc_count_objects(&self) -> Result; /// Prune dangling objects. fn gc_prune_orphans(&self) -> Result; }