pub struct StaticPluginFactory { /* private fields */ }Implementations§
Source§impl StaticPluginFactory
impl StaticPluginFactory
pub fn new(id: &'static str, spec: PluginSpec) -> Self
Trait Implementations§
Source§impl PluginFactory for StaticPluginFactory
impl PluginFactory for StaticPluginFactory
fn id(&self) -> &'static str
Source§fn build(
&self,
_ctx: &PluginSessionContext,
) -> Result<Arc<dyn SessionPlugin>, PluginError>
fn build( &self, _ctx: &PluginSessionContext, ) -> Result<Arc<dyn SessionPlugin>, PluginError>
Produce a session-scoped plugin. Must be cheap — see the
trait-level docs for the full contract.
fn supported_standard_context_approaches( &self, ) -> &'static [StandardContextApproachKind]
Auto Trait Implementations§
impl Freeze for StaticPluginFactory
impl !RefUnwindSafe for StaticPluginFactory
impl Send for StaticPluginFactory
impl Sync for StaticPluginFactory
impl Unpin for StaticPluginFactory
impl UnsafeUnpin for StaticPluginFactory
impl !UnwindSafe for StaticPluginFactory
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