Skip to main content

InstanceCache

Trait InstanceCache 

Source
pub trait InstanceCache {
    // Required method
    fn clear_cache(&self) -> impl Future<Output = ()> + Send;
}
Expand description

Cache invalidation surface for a launcher instance.

Required Methods§

Source

fn clear_cache(&self) -> impl Future<Output = ()> + Send

Invalidates the loader manifest cache plus the Modrinth and CurseForge mod caches scoped to (minecraft_version, loader). Idempotent.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> InstanceCache for T
where T: VersionInfo<LoaderType = Loader> + WithMods + Send + Sync,