[][src]Struct lv2_sys::_LV2_Options_Interface

#[repr(C)]
pub struct _LV2_Options_Interface {
    pub get: Option<unsafe extern "C" fn(instance: LV2_Handle, options: *mut LV2_Options_Option) -> u32>,
    pub set: Option<unsafe extern "C" fn(instance: LV2_Handle, options: *const LV2_Options_Option) -> u32>,
}

Interface for dynamically setting options (LV2_OPTIONS__interface).

Fields

get: Option<unsafe extern "C" fn(instance: LV2_Handle, options: *mut LV2_Options_Option) -> u32>

Get the given options.

Each element of the passed options array MUST have type, subject, and key set. All other fields (size, type, value) MUST be initialised to zero, and are set to the option value if such an option is found.

This function is in the "instantiation" LV2 threading class, so no other instance functions may be called concurrently.

@return Bitwise OR of LV2_Options_Status values.

set: Option<unsafe extern "C" fn(instance: LV2_Handle, options: *const LV2_Options_Option) -> u32>

Set the given options.

This function is in the "instantiation" LV2 threading class, so no other instance functions may be called concurrently.

@return Bitwise OR of LV2_Options_Status values.

Trait Implementations

impl Clone for _LV2_Options_Interface[src]

impl Copy for _LV2_Options_Interface[src]

impl Debug for _LV2_Options_Interface[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.