pub struct MergeCoordinator { /* private fields */ }
Expand description
Merge coordinator for handling multi-instance cache coordination
Implementations§
Source§impl MergeCoordinator
impl MergeCoordinator
Sourcepub fn with_strategy(
cache_dir: PathBuf,
strategy: MergeStrategy,
) -> Result<Self>
pub fn with_strategy( cache_dir: PathBuf, strategy: MergeStrategy, ) -> Result<Self>
Create coordinator with custom merge strategy
Sourcepub async fn merge_instance_caches(
&self,
main_cache: &BootstrapCache,
) -> Result<MergeResult>
pub async fn merge_instance_caches( &self, main_cache: &BootstrapCache, ) -> Result<MergeResult>
Merge all instance caches into the main cache
Sourcepub fn get_strategy(&self) -> &MergeStrategy
pub fn get_strategy(&self) -> &MergeStrategy
Get merge strategy
Sourcepub fn set_strategy(&mut self, strategy: MergeStrategy)
pub fn set_strategy(&mut self, strategy: MergeStrategy)
Set merge strategy
Trait Implementations§
Source§impl Clone for MergeCoordinator
impl Clone for MergeCoordinator
Source§fn clone(&self) -> MergeCoordinator
fn clone(&self) -> MergeCoordinator
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MergeCoordinator
impl RefUnwindSafe for MergeCoordinator
impl Send for MergeCoordinator
impl Sync for MergeCoordinator
impl Unpin for MergeCoordinator
impl UnwindSafe for MergeCoordinator
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