pub struct RetrieveHandle<'a> { /* private fields */ }Expand description
Property retrieval handle.
Implementations§
Source§impl<'a> RetrieveHandle<'a>
impl<'a> RetrieveHandle<'a>
Sourcepub fn new(
retrieve_fn: LV2_State_Retrieve_Function,
handle: LV2_State_Handle,
) -> Self
pub fn new( retrieve_fn: LV2_State_Retrieve_Function, handle: LV2_State_Handle, ) -> Self
Create a new retrieval handle that uses the given callback function and handle.
Sourcepub fn retrieve<K: ?Sized>(
&self,
key: URID<K>,
) -> Result<StatePropertyReader<'_>, StateErr>
pub fn retrieve<K: ?Sized>( &self, key: URID<K>, ) -> Result<StatePropertyReader<'_>, StateErr>
Try to retrieve a property from the host.
This method calls the internal retrieve callback with the given URID. If there’s no property with the given URID, Err(StateErr::NoProperty) is returned. Otherwise, a reading handle is returned that contains the type and the data of the property and can interpret it as an atom.
Auto Trait Implementations§
impl<'a> Freeze for RetrieveHandle<'a>
impl<'a> RefUnwindSafe for RetrieveHandle<'a>
impl<'a> !Send for RetrieveHandle<'a>
impl<'a> !Sync for RetrieveHandle<'a>
impl<'a> Unpin for RetrieveHandle<'a>
impl<'a> UnsafeUnpin for RetrieveHandle<'a>
impl<'a> !UnwindSafe for RetrieveHandle<'a>
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