pub struct StateDescriptor<P: State> { /* private fields */ }Expand description
Raw wrapper of the State extension.
This is a marker type that has the required external methods for the extension.
Implementations§
Source§impl<P: State> StateDescriptor<P>
impl<P: State> StateDescriptor<P>
Sourcepub 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
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
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.
Sourcepub 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
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
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§
Source§impl<P: State> ExtensionDescriptor for StateDescriptor<P>
impl<P: State> ExtensionDescriptor for StateDescriptor<P>
const INTERFACE: &'static LV2_State_Interface
type ExtensionInterface = LV2_State_Interface
Auto Trait Implementations§
impl<P> Freeze for StateDescriptor<P>
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> UnsafeUnpin for StateDescriptor<P>
impl<P> UnwindSafe for StateDescriptor<P>where
P: UnwindSafe,
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