[][src]Struct lv2_sys::LV2_Extension_Data_Feature

#[repr(C)]pub struct LV2_Extension_Data_Feature {
    pub data_access: Option<unsafe extern "C" fn(uri: *const c_char) -> *const c_void>,
}

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

impl Clone for LV2_Extension_Data_Feature[src]

impl Copy for LV2_Extension_Data_Feature[src]

impl Debug for LV2_Extension_Data_Feature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.