pub struct App { /* private fields */ }Implementations§
Source§impl App
impl App
pub fn new() -> Self
Sourcepub fn load_adapter(&mut self, adapter: impl Adapter + 'static) -> &mut Self
pub fn load_adapter(&mut self, adapter: impl Adapter + 'static) -> &mut Self
加载适配器
Sourcepub fn load_plugin(&mut self, plugin: impl Plugin + 'static) -> &mut Self
pub fn load_plugin(&mut self, plugin: impl Plugin + 'static) -> &mut Self
加载插件
Sourcepub fn run(&mut self) -> FrameworkResult<()>
pub fn run(&mut self) -> FrameworkResult<()>
启动应用
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Freeze for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
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