pub struct PluginWrapper {
pub handler: Box<dyn PluginHandler>,
pub context: Option<PluginInstanceContext>,
}Expand description
插件包装器,包含处理器和上下文
Fields§
§handler: Box<dyn PluginHandler>§context: Option<PluginInstanceContext>Auto Trait Implementations§
impl Freeze for PluginWrapper
impl !RefUnwindSafe for PluginWrapper
impl Send for PluginWrapper
impl Sync for PluginWrapper
impl Unpin for PluginWrapper
impl UnsafeUnpin for PluginWrapper
impl !UnwindSafe for PluginWrapper
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