[−][src]Struct lv2_state::StateDescriptor
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]
instance: LV2_Handle,
store: LV2_State_Store_Function,
handle: LV2_State_Handle,
flags: u32,
features: *const *const LV2_Feature
) -> LV2_State_Status
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]
instance: LV2_Handle,
retrieve: LV2_State_Retrieve_Function,
handle: LV2_State_Handle,
flags: u32,
features: *const *const LV2_Feature
) -> LV2_State_Status
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]
type ExtensionInterface = LV2_State_Interface
const INTERFACE: &'static LV2_State_Interface
[src]
impl<P: State> UriBound for StateDescriptor<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for StateDescriptor<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for StateDescriptor<P>
impl<P> Sync for StateDescriptor<P>
impl<P> Unpin for StateDescriptor<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for StateDescriptor<P> where
P: UnwindSafe,
P: UnwindSafe,
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,
pub 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, 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.
pub 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>,