Skip to main content

ConfiguredPluginFactory

Struct ConfiguredPluginFactory 

Source
pub struct ConfiguredPluginFactory<P, F> { /* private fields */ }
Expand description

A generated Plugin factory with event-owned private Host bindings.

Implementations§

Source§

impl<P, F> ConfiguredPluginFactory<P, F>
where P: NativePluginDefinition, F: Fn(&mut P) -> Result<(), RuntimeFailure> + 'static,

Source

pub fn new(initialize: F) -> ConfiguredPluginFactory<P, F>

Trait Implementations§

Source§

impl<P, F> Debug for ConfiguredPluginFactory<P, F>

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<P, F> NativePluginFactory for ConfiguredPluginFactory<P, F>
where P: NativePluginDefinition, F: Fn(&mut P) -> Result<(), RuntimeFailure> + 'static,

Source§

fn package_id(&self) -> &'static str

Package identity selected by the Resolved App Plan.
Source§

fn package_version(&self) -> &'static str

Exact statically linked Cargo package version.
Source§

fn runtime_profile(&self) -> &'static str

Exact native authoring protocol implemented by this factory. Read more
Source§

fn instantiate( &self, context: NativePluginFactoryContext<'_>, ) -> Result<NativePluginInstance, RuntimeFailure>

Creates a fresh Plugin Instance generation.
Source§

fn factory_identity(&self) -> String

Immutable factory identity advertised by the exact Host Build Manifest. Read more

Auto Trait Implementations§

§

impl<P, F> Freeze for ConfiguredPluginFactory<P, F>
where F: Freeze, PhantomData<fn() -> P>: Freeze,

§

impl<P, F> RefUnwindSafe for ConfiguredPluginFactory<P, F>

§

impl<P, F> Send for ConfiguredPluginFactory<P, F>
where F: Send, PhantomData<fn() -> P>: Send,

§

impl<P, F> Sync for ConfiguredPluginFactory<P, F>
where F: Sync, PhantomData<fn() -> P>: Sync,

§

impl<P, F> Unpin for ConfiguredPluginFactory<P, F>
where F: Unpin, PhantomData<fn() -> P>: Unpin,

§

impl<P, F> UnsafeUnpin for ConfiguredPluginFactory<P, F>

§

impl<P, F> UnwindSafe for ConfiguredPluginFactory<P, F>
where F: UnwindSafe, PhantomData<fn() -> P>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.