Skip to main content

AppEnumerator

Trait AppEnumerator 

Source
pub trait AppEnumerator: Send + Sync {
    // Required method
    fn enumerate_apps<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Vec<AppInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

应用枚举器 trait,定义平台原语。 各平台实现通过系统 API 发现已安装应用,插件通过 PluginHandle 委托调用。

Required Methods§

Source

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

枚举所有已安装应用。 参数:无。 返回:应用信息列表。

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§