#[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_descriptorplugin_data: *mut c_voidinit: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.