pub struct ResourcesDiscoverHandler {
pub handler: ResourcesDiscoverFn,
pub plugin_free_string: FreeStringFn,
pub user_data: *mut c_void,
}Expand description
A registered resources_discover handler (B5b). The out [StbString] the
handler produces is plugin-owned, so the host reclaims it via the
plugin’s own plugin_free_string traveled alongside. user_data is the
plugin’s opaque context. SAFETY: same as RegisteredHandler — the plugin
warrants handler is callable from any thread and user_data is valid for
the registry’s lifetime; the host never frees user_data.
Fields§
§handler: ResourcesDiscoverFn§plugin_free_string: FreeStringFn§user_data: *mut c_voidTrait Implementations§
Source§impl Clone for ResourcesDiscoverHandler
impl Clone for ResourcesDiscoverHandler
Source§fn clone(&self) -> ResourcesDiscoverHandler
fn clone(&self) -> ResourcesDiscoverHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourcesDiscoverHandler
impl Send for ResourcesDiscoverHandler
impl Sync for ResourcesDiscoverHandler
Auto Trait Implementations§
impl Freeze for ResourcesDiscoverHandler
impl RefUnwindSafe for ResourcesDiscoverHandler
impl Unpin for ResourcesDiscoverHandler
impl UnsafeUnpin for ResourcesDiscoverHandler
impl UnwindSafe for ResourcesDiscoverHandler
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