Trait scl_core::download::fabric::FabricDownloadExt
source · pub trait FabricDownloadExt: 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
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn download_fabric_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_fabric_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
Fabric 模组加载器的安装特质
可以通过引入本特质和使用 crate::download::Downloader
来安装模组加载器
Required Methods§
sourcefn 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 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,
根据原版版本号获取该版本下可用的 Fabric 模组加载器
sourcefn download_library<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<()>> + 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 ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
下载 Fabric 模组加载器所需的库文件
sourcefn download_fabric_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_fabric_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,
下载 Fabric 模组加载器,安装时需要配合 download_fabric_post 来合并版本元数据