pub struct Module { /* private fields */ }Implementations§
Source§impl Module
impl Module
pub fn id(&self) -> &str
pub fn version(&self) -> &str
pub fn library_sha256(&self) -> &str
pub fn injects(&self) -> Vec<TypeKey>
Sourcepub fn factory(&self) -> &dyn PluginFactory<ConfigValue>
pub fn factory(&self) -> &dyn PluginFactory<ConfigValue>
The plugin’s factory over JSON config. Build plugins with
Module::build: a plugin built here directly is not marked as
this library’s code, and what it provides of a #[rutis::service]
type of the library is not served by name (only the program’s own
marked types are, for code of no library).
Sourcepub fn generation(&self) -> Generation
pub fn generation(&self) -> Generation
The generation the library was loaded as (rutis::service::loading).
Sourcepub fn build(&self, config: &ConfigValue) -> Result<Box<dyn DynPlugin>, Error>
pub fn build(&self, config: &ConfigValue) -> Result<Box<dyn DynPlugin>, Error>
Build the plugin for config, its fiber marked as this library’s
code (rutis::service::set_generation): a #[rutis::service] value
it provides is served with this library’s blocks, even when another
build of the same plugin, with the same TypeIds, is loaded too.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Module
impl !UnwindSafe for Module
impl Forget for Module
impl Freeze for Modulewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeKey>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const dyn PluginFactory<Value> is !null: Freeze,
PhantomData<dyn PluginFactory<Value>>: Freeze,
*const c_void is !null: Freeze,
impl Move for Module
impl Unpin for Module
impl UnsafeUnpin for Modulewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeKey>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const dyn PluginFactory<Value> is !null: UnsafeUnpin,
PhantomData<dyn PluginFactory<Value>>: UnsafeUnpin,
*const c_void is !null: UnsafeUnpin,
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