#[repr(C)]pub struct LV2_Extension_Data_Feature {
pub data_access: Option<unsafe extern "C" fn(uri: *const c_char) -> *const c_void>,
}Expand description
The data field of the LV2_Feature for this extension.
To support this feature the host must pass an LV2_Feature struct to the instantiate method with URI “http://lv2plug.in/ns/ext/data-access” and data pointed to an instance of this struct.
Fields§
§data_access: Option<unsafe extern "C" fn(uri: *const c_char) -> *const c_void>A pointer to a method the UI can call to get data (of a type specified by some other extension) from the plugin.
This call never is never guaranteed to return anything, UIs should degrade gracefully if direct access to the plugin data is not possible (in which case this function will return NULL).
This is for access to large data that can only possibly work if the UI and plugin are running in the same process. For all other things, use the normal LV2 UI communication system.
Trait Implementations§
Source§impl Clone for LV2_Extension_Data_Feature
impl Clone for LV2_Extension_Data_Feature
Source§fn clone(&self) -> LV2_Extension_Data_Feature
fn clone(&self) -> LV2_Extension_Data_Feature
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 LV2_Extension_Data_Feature
impl Debug for LV2_Extension_Data_Feature
impl Copy for LV2_Extension_Data_Feature
Auto Trait Implementations§
impl Freeze for LV2_Extension_Data_Feature
impl RefUnwindSafe for LV2_Extension_Data_Feature
impl Send for LV2_Extension_Data_Feature
impl Sync for LV2_Extension_Data_Feature
impl Unpin for LV2_Extension_Data_Feature
impl UnwindSafe for LV2_Extension_Data_Feature
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