pub struct PluginModule { /* private fields */ }Expand description
Wrapper around the shape.module capability.
Implementations§
Source§impl PluginModule
impl PluginModule
Sourcepub fn new(
name: String,
vtable: &'static ModuleVTable,
config: &Value,
) -> Result<Self>
pub fn new( name: String, vtable: &'static ModuleVTable, config: &Value, ) -> Result<Self>
Create a new module-capability wrapper from a plugin vtable.
Sourcepub fn schema(&self) -> &ParsedModuleSchema
pub fn schema(&self) -> &ParsedModuleSchema
Parsed module schema.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginModule
impl RefUnwindSafe for PluginModule
impl Unpin for PluginModule
impl UnsafeUnpin for PluginModule
impl UnwindSafe for PluginModule
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