#[repr(C)]pub struct clap_plugin {
pub desc: *const clap_plugin_descriptor,
pub plugin_data: *mut c_void,
pub init: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>,
pub destroy: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub activate: Option<unsafe extern "C" fn(plugin: *const clap_plugin, sample_rate: f64, min_frames_count: u32, max_frames_count: u32) -> bool>,
pub deactivate: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub start_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>,
pub stop_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub reset: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub process: Option<unsafe extern "C" fn(plugin: *const clap_plugin, process: *const clap_process) -> clap_process_status>,
pub get_extension: Option<unsafe extern "C" fn(plugin: *const clap_plugin, id: *const c_char) -> *const c_void>,
pub on_main_thread: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
}Fields§
§desc: *const clap_plugin_descriptor§plugin_data: *mut c_void§init: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>§destroy: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>§activate: Option<unsafe extern "C" fn(plugin: *const clap_plugin, sample_rate: f64, min_frames_count: u32, max_frames_count: u32) -> bool>§deactivate: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>§start_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>§stop_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>§reset: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>§process: Option<unsafe extern "C" fn(plugin: *const clap_plugin, process: *const clap_process) -> clap_process_status>§get_extension: Option<unsafe extern "C" fn(plugin: *const clap_plugin, id: *const c_char) -> *const c_void>§on_main_thread: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>Trait Implementations§
Source§impl Clone for clap_plugin
impl Clone for clap_plugin
Source§fn clone(&self) -> clap_plugin
fn clone(&self) -> clap_plugin
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for clap_plugin
impl Debug for clap_plugin
impl Copy for clap_plugin
impl Send for clap_plugin
impl Sync for clap_plugin
Auto Trait Implementations§
impl Freeze for clap_plugin
impl RefUnwindSafe for clap_plugin
impl Unpin for clap_plugin
impl UnwindSafe for clap_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