#[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>,
}Expand description
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§
Source§impl Clone for LV2_Options_Interface
impl Clone for LV2_Options_Interface
Source§fn clone(&self) -> LV2_Options_Interface
fn clone(&self) -> LV2_Options_Interface
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_Options_Interface
impl Debug for LV2_Options_Interface
impl Copy for LV2_Options_Interface
Auto Trait Implementations§
impl Freeze for LV2_Options_Interface
impl RefUnwindSafe for LV2_Options_Interface
impl Send for LV2_Options_Interface
impl Sync for LV2_Options_Interface
impl Unpin for LV2_Options_Interface
impl UnwindSafe for LV2_Options_Interface
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