pub struct PluginSpecFactory { /* private fields */ }Implementations§
Source§impl PluginSpecFactory
impl PluginSpecFactory
pub fn new(id: &'static str, builder: PluginSpecBuilder) -> Self
Trait Implementations§
Source§impl PluginFactory for PluginSpecFactory
impl PluginFactory for PluginSpecFactory
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 PluginSpecFactory
impl !RefUnwindSafe for PluginSpecFactory
impl Send for PluginSpecFactory
impl Sync for PluginSpecFactory
impl Unpin for PluginSpecFactory
impl UnsafeUnpin for PluginSpecFactory
impl !UnwindSafe for PluginSpecFactory
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