AUDIO
Source snapshot · 11 November 2026

API reference / ravet_plugin::clap::ClapPlugin

Struct ClapPlugin 

pub struct ClapPlugin<P>(/* private fields */);
Expand description

The CLAP plug-in type for processor P.

Trait Implementations§

§

impl<P: PluginExport> DefaultPluginFactory for ClapPlugin<P>

§

fn get_descriptor() -> PluginDescriptor

Returns a new Plugin Descriptor, which contains metadata about the plugin, such as its name, stable identifier, and more. Read more
§

fn new_shared(_: HostSharedHandle<'_>) -> Result<ClapShared, PluginError>

Creates a new instance of this shared data. Read more
§

fn new_main_thread<'a>( host: HostMainThreadHandle<'a>, shared: &'a ClapShared, ) -> Result<ClapMain<'a>, PluginError>

Creates a new instance of the plugin’s main thread. Read more
§

impl<P: PluginExport> Plugin for ClapPlugin<P>

§

type AudioProcessor<'a> = ClapAudio<'a, P>

The type holding the plugin’s data and operations that belong to the audio thread. Read more
§

type Shared<'a> = ClapShared

The type holding the plugin’s thread-safe data and operations. Read more
§

type MainThread<'a> = ClapMain<'a>

The type holding the plugin’s data and operations that belong to the main thread. Read more
§

fn declare_extensions( builder: &mut PluginExtensions<'_, Self>, _: Option<&ClapShared>, )

Declares the extensions this plugin supports. Read more

Auto Trait Implementations§

§

impl<P> Freeze for ClapPlugin<P>

§

impl<P> RefUnwindSafe for ClapPlugin<P>

§

impl<P> Send for ClapPlugin<P>

§

impl<P> Sync for ClapPlugin<P>

§

impl<P> Unpin for ClapPlugin<P>

§

impl<P> UnsafeUnpin for ClapPlugin<P>

§

impl<P> UnwindSafe for ClapPlugin<P>

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> Same for T

§

type Output = T

Should always be Self
§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.