pub struct EntryFactories<'a> { /* private fields */ }Expand description
A lightweight collection of all the factories a given plugin entry supports.
Entry implementations are expected to declare the factories they support to the host using
the register_factory method.
Implementations§
Source§impl<'a> EntryFactories<'a>
impl<'a> EntryFactories<'a>
Sourcepub fn register_factory<F: FactoryImplementation<'a>>(
&mut self,
factory: &'a F,
) -> &mut Self
pub fn register_factory<F: FactoryImplementation<'a>>( &mut self, factory: &'a F, ) -> &mut Self
Adds a given factory implementation to the list of factories this entry supports.
This method returns the factory itself, allowing for easy method chaining and a builder-like usage pattern.
See Entry’s documentation for an example.
Auto Trait Implementations§
impl<'a> !Send for EntryFactories<'a>
impl<'a> !Sync for EntryFactories<'a>
impl<'a> Freeze for EntryFactories<'a>
impl<'a> RefUnwindSafe for EntryFactories<'a>
impl<'a> Unpin for EntryFactories<'a>
impl<'a> UnsafeUnpin for EntryFactories<'a>
impl<'a> UnwindSafe for EntryFactories<'a>
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