pub struct DynamicPlugin { /* private fields */ }Expand description
Dynamic library plugin wrapper
Implementations§
Source§impl DynamicPlugin
impl DynamicPlugin
Sourcepub fn metadata(&self) -> &PluginMetadata
pub fn metadata(&self) -> &PluginMetadata
Get plugin metadata
Sourcepub fn initialize(&mut self, context: &PluginContext) -> JitResult<()>
pub fn initialize(&mut self, context: &PluginContext) -> JitResult<()>
Initialize plugin
Sourcepub fn register(&self, registry: &mut PluginRegistry) -> JitResult<()>
pub fn register(&self, registry: &mut PluginRegistry) -> JitResult<()>
Register plugin functionality
Auto Trait Implementations§
impl Freeze for DynamicPlugin
impl !RefUnwindSafe for DynamicPlugin
impl Send for DynamicPlugin
impl Sync for DynamicPlugin
impl Unpin for DynamicPlugin
impl UnsafeUnpin for DynamicPlugin
impl !UnwindSafe for DynamicPlugin
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more