pub struct PluginFactory { /* private fields */ }Expand description
Safe wrapper around VST3 plugin factory
Implementations§
Source§impl PluginFactory
impl PluginFactory
Sourcepub fn from_module(bundle_path: &Path) -> Result<Self, String>
pub fn from_module(bundle_path: &Path) -> Result<Self, String>
Load a VST3 plugin bundle and create a factory
Sourcepub fn get_class_info(&self, index: i32) -> Option<ClassInfo>
pub fn get_class_info(&self, index: i32) -> Option<ClassInfo>
Get information about a plugin class using the trait
Sourcepub fn count_classes(&self) -> i32
pub fn count_classes(&self) -> i32
Count the number of classes using the trait
Sourcepub fn create_instance(
&self,
class_id: &[i8; 16],
) -> Result<PluginInstance, String>
pub fn create_instance( &self, class_id: &[i8; 16], ) -> Result<PluginInstance, String>
Create an instance of a plugin using the trait
pub fn create_edit_controller( &self, class_id: &[i8; 16], ) -> Result<ComPtr<IEditController>, String>
Trait Implementations§
Source§impl Debug for PluginFactory
impl Debug for PluginFactory
Auto Trait Implementations§
impl Freeze for PluginFactory
impl RefUnwindSafe for PluginFactory
impl Send for PluginFactory
impl Sync for PluginFactory
impl Unpin for PluginFactory
impl UnsafeUnpin for PluginFactory
impl UnwindSafe for PluginFactory
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more