[][src]Struct lv2_state::StateDescriptor

pub struct StateDescriptor<P: State> { /* fields omitted */ }

Raw wrapper of the State extension.

This is a marker type that has the required external methods for the extension.

Implementations

impl<P: State> StateDescriptor<P>[src]

pub unsafe extern "C" fn extern_save(
    instance: LV2_Handle,
    store: LV2_State_Store_Function,
    handle: LV2_State_Handle,
    flags: u32,
    features: *const *const LV2_Feature
) -> LV2_State_Status
[src]

Handle a save request by the host.

This involves creating the plugin reference, constructing the store handle and discovering the required host features.

Safety

This method is unsafe since it is an interface for hosts written in C and since it dereferences raw pointers.

pub unsafe extern "C" fn extern_restore(
    instance: LV2_Handle,
    retrieve: LV2_State_Retrieve_Function,
    handle: LV2_State_Handle,
    flags: u32,
    features: *const *const LV2_Feature
) -> LV2_State_Status
[src]

Handle a restore request by the host.

This involves creating the plugin reference, constructing the retrieve handle and discovering the required host features.

Safety

This method is unsafe since it is an interface for hosts written in C and since it dereferences raw pointers.

Trait Implementations

impl<P: State> ExtensionDescriptor for StateDescriptor<P>[src]

impl<P: State> UriBound for StateDescriptor<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for StateDescriptor<P> where
    P: RefUnwindSafe

impl<P> Send for StateDescriptor<P>

impl<P> Sync for StateDescriptor<P>

impl<P> Unpin for StateDescriptor<P> where
    P: Unpin

impl<P> UnwindSafe for StateDescriptor<P> where
    P: UnwindSafe

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, 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.