pub struct PluginRegistry { /* private fields */ }Expand description
插件注册表
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
pub fn new() -> Self
Sourcepub fn list(&self) -> Vec<PluginInfo>
pub fn list(&self) -> Vec<PluginInfo>
获取所有插件信息
Sourcepub async fn ready_all(&self) -> PluginResult<()>
pub async fn ready_all(&self) -> PluginResult<()>
启动所有插件
Sourcepub async fn destroy_all(&self) -> PluginResult<()>
pub async fn destroy_all(&self) -> PluginResult<()>
销毁所有插件
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PluginRegistry
impl !RefUnwindSafe for PluginRegistry
impl !UnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more