//! pack Operation method trait for the module. use crate::pack::types::{HotPackResult, IndexResult, IngestPackResult, PackStats, RepackResult}; /// pack Operation trait. pub trait PackOps { /// Receive and parse a pack stream. fn pack_ingest_pack(&self, data: &[u8]) -> Result; /// Build a pack index. fn pack_index(&self, pack_id: &str) -> Result; /// Repack the repository. fn pack_repack(&self) -> Result; /// pack Statistics. fn pack_stats(&self) -> Result; /// Maintain a hot pack cache. fn pack_cache_hot_pack(&self, pack_id: &str) -> Result; }