pub struct PluginInstanceHooks {
pub after_create: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>,
pub before_mount: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>,
pub after_mount: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>,
pub before_destroy: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>,
}Fields§
§after_create: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>§before_mount: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>§after_mount: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>§before_destroy: Option<Box<dyn Fn(&PluginInstance) -> Result<(), BoxError> + Send + Sync + 'static>>Trait Implementations§
Source§impl Default for PluginInstanceHooks
impl Default for PluginInstanceHooks
Source§fn default() -> PluginInstanceHooks
fn default() -> PluginInstanceHooks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginInstanceHooks
impl !RefUnwindSafe for PluginInstanceHooks
impl Send for PluginInstanceHooks
impl Sync for PluginInstanceHooks
impl Unpin for PluginInstanceHooks
impl !UnwindSafe for PluginInstanceHooks
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