pub struct PluginAudioProcessorHandle<'a> { /* private fields */ }Expand description
An audio-thread handle to an activated plugin instance.
This can be used to make requests to the plugin that can only be made from the audio thread.
Implementations§
Source§impl<'a> PluginAudioProcessorHandle<'a>
impl<'a> PluginAudioProcessorHandle<'a>
Sourcepub const fn as_raw(&self) -> &'a clap_plugin
pub const fn as_raw(&self) -> &'a clap_plugin
Returns a shared reference to the raw, C-FFI compatible plugin instance struct.
This type enforces that the reference is valid for the lifetime of the instance ('a).
If you need to access the raw pointer without dereferencing it first, use
as_raw_ptr instead.
Sourcepub const fn as_raw_ptr(&self) -> *const clap_plugin
pub const fn as_raw_ptr(&self) -> *const clap_plugin
Returns a raw pointer to the raw, C-FFI compatible plugin instance struct, without dereferencing it.
If you need to safely access the plugin instance struct through a shared reference,
use as_raw instead.
Turns this handle reference to a PluginSharedHandle reference.
Turns this handle reference to a PluginSharedHandle reference.
Methods from Deref<Target = PluginSharedHandle<'a>>§
Trait Implementations§
Source§impl Debug for PluginAudioProcessorHandle<'_>
impl Debug for PluginAudioProcessorHandle<'_>
Source§impl<'a> Deref for PluginAudioProcessorHandle<'a>
impl<'a> Deref for PluginAudioProcessorHandle<'a>
impl<'a> Eq for PluginAudioProcessorHandle<'a>
Source§impl<'a> PartialEq for PluginAudioProcessorHandle<'a>
impl<'a> PartialEq for PluginAudioProcessorHandle<'a>
impl Send for PluginAudioProcessorHandle<'_>
impl<'a> StructuralPartialEq for PluginAudioProcessorHandle<'a>
Auto Trait Implementations§
impl<'a> !Sync for PluginAudioProcessorHandle<'a>
impl<'a> Freeze for PluginAudioProcessorHandle<'a>
impl<'a> RefUnwindSafe for PluginAudioProcessorHandle<'a>
impl<'a> Unpin for PluginAudioProcessorHandle<'a>
impl<'a> UnsafeUnpin for PluginAudioProcessorHandle<'a>
impl<'a> UnwindSafe for PluginAudioProcessorHandle<'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