pub trait QuiltMCDownloadExt: Sync {
    // Required methods
    fn get_avaliable_loaders<'life0, 'life1, 'async_trait>(
        &'life0 self,
        vanilla_version: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<LoaderMetaItem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn download_library<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        url: String
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn download_quiltmc_pre<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        version_name: &'life1 str,
        version_id: &'life2 str,
        loader_version: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn download_quiltmc_post<'life0, 'life1, 'async_trait>(
        &'life0 self,
        version_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

QuiltMC 模组加载器的安装特质

可以通过引入本特质和使用 crate::download::Downloader 来安装模组加载器

Required Methods§

source

fn get_avaliable_loaders<'life0, 'life1, 'async_trait>( &'life0 self, vanilla_version: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<LoaderMetaItem>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

根据原版版本号获取该版本下可用的 QuiltMC 模组加载器

source

fn download_library<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, url: String ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

下载 QuiltMC 模组加载器所需的库文件

source

fn download_quiltmc_pre<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, version_name: &'life1 str, version_id: &'life2 str, loader_version: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

下载 QuiltMC 模组加载器,安装时需要配合 download_quiltmc_post 来合并版本元数据

source

fn download_quiltmc_post<'life0, 'life1, 'async_trait>( &'life0 self, version_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

将 QuiltMC 模组加载器的版本元数据与原版版本元数据合并以完成最后安装步骤

Implementors§