pub trait AuthlibDownloadExt: Sync {
    // Required methods
    fn download_authlib_injector<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dest_path: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn install_authlib_injector<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Authlib 第三方正版登录模块的下载特质

你可以通过引入本特质和 crate::download::Downloader 来下载并安装 Authlib Injector

Required Methods§

source

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

下载最新版本的 Authlib Injector 并存放到指定路径,如果路径的文件夹不存在则会先创建它,如果文件已存在则会被覆盖

source

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

安装最新版本的 Authlib Injector

Implementors§