[−][src]Struct lv2_sys::LV2_Lib_Descriptor
Descriptor for a plugin library.
To access a plugin library, the host creates an LV2_Lib_Descriptor via the lv2_lib_descriptor() function in the shared object.
Fields
handle: LV2_Lib_Handle
Opaque library data which must be passed as the first parameter to all the methods of this struct.
size: u32
The total size of this struct. This allows for this struct to be expanded in the future if necessary. This MUST be set by the library to sizeof(LV2_Lib_Descriptor). The host MUST NOT access any fields of this struct beyond get_plugin() unless this field indicates they are present.
cleanup: Option<unsafe extern "C" fn(handle: LV2_Lib_Handle)>
Destroy this library descriptor and free all related resources.
get_plugin: Option<unsafe extern "C" fn(handle: LV2_Lib_Handle, index: u32) -> *const LV2_Descriptor>
Plugin accessor.
Plugins are accessed by index using values from 0 upwards. Out of range
indices MUST result in this function returning NULL, so the host can
enumerate plugins by increasing index
until NULL is returned.
Trait Implementations
impl Clone for LV2_Lib_Descriptor
[src]
fn clone(&self) -> LV2_Lib_Descriptor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LV2_Lib_Descriptor
[src]
impl Debug for LV2_Lib_Descriptor
[src]
Auto Trait Implementations
impl RefUnwindSafe for LV2_Lib_Descriptor
impl !Send for LV2_Lib_Descriptor
impl !Sync for LV2_Lib_Descriptor
impl Unpin for LV2_Lib_Descriptor
impl UnwindSafe for LV2_Lib_Descriptor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,