pub struct Registration {
pub name: &'static str,
pub create: fn(&str) -> Result<Box<dyn Instance>>,
}Expand description
A name and constructor, registered without instantiating the plugin.
Fields§
§name: &'static str§create: fn(&str) -> Result<Box<dyn Instance>>Auto Trait Implementations§
impl Freeze for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
impl UnwindSafe for Registration
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