pub struct PluginMainThreadHandle<'a> { /* private fields */ }Expand description
A main-thread handle to the plugin instance.
This can be used to make requests to the plugin that can only be made in the main thread, which is required for e.g. some extensions.
Implementations§
Source§impl<'a> PluginMainThreadHandle<'a>
impl<'a> PluginMainThreadHandle<'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.
Produces a PluginSharedHandle from this main-thread handle.
Turns this handle reference to a PluginSharedHandle reference.
Methods from Deref<Target = PluginSharedHandle<'a>>§
Trait Implementations§
Source§impl<'a> Clone for PluginMainThreadHandle<'a>
impl<'a> Clone for PluginMainThreadHandle<'a>
Source§fn clone(&self) -> PluginMainThreadHandle<'a>
fn clone(&self) -> PluginMainThreadHandle<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more