pub struct Plugin { /* private fields */ }Expand description
A plugin that can be used to instantiate plugin instances.
Implementations§
Source§impl Plugin
impl Plugin
Sourcepub fn classes(&self) -> impl ExactSizeIterator<Item = &str>
pub fn classes(&self) -> impl ExactSizeIterator<Item = &str>
Returns the classes of the plugin. For example: “Instrument Plugin” or “Delay Plugin”.
Sourcepub fn is_instrument(&self) -> bool
pub fn is_instrument(&self) -> bool
Returns true if the plugin is an instrument plugin.
Sourcepub unsafe fn instantiate(
&self,
features: Arc<Features>,
sample_rate: f64,
) -> Result<Instance, InstantiateError>
pub unsafe fn instantiate( &self, features: Arc<Features>, sample_rate: f64, ) -> Result<Instance, InstantiateError>
Sourcepub fn port_counts(&self) -> &PortCounts
pub fn port_counts(&self) -> &PortCounts
Get the number of ports for each type of port.
Sourcepub fn ports_with_type(
&self,
port_type: PortType,
) -> impl '_ + Iterator<Item = Port>
pub fn ports_with_type( &self, port_type: PortType, ) -> impl '_ + Iterator<Item = Port>
Return all ports with the given type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugin
impl !RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl !UnwindSafe for Plugin
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