pub struct PluginToolHandle { /* private fields */ }Expand description
The plugin’s per-tool lifecycle bundle the host holds after a successful
register_tool. All fields are fn pointers (Copy), so the handle is Copy:
cloning duplicates the pointers, not any allocation. A registered tool is
driven by at most one PluginToolAdapter at a time, but the handle is
copied through the registry snapshot path, hence Copy.
plugin_free_string is the fn the plugin exports to free the
StbStrings it produces (schema strings, terminal result, pending
progress). The host calls it for each such string it receives.
Trait Implementations§
Source§impl Clone for PluginToolHandle
impl Clone for PluginToolHandle
Source§fn clone(&self) -> PluginToolHandle
fn clone(&self) -> PluginToolHandle
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 PluginToolHandle
Auto Trait Implementations§
impl Freeze for PluginToolHandle
impl RefUnwindSafe for PluginToolHandle
impl Send for PluginToolHandle
impl Sync for PluginToolHandle
impl Unpin for PluginToolHandle
impl UnsafeUnpin for PluginToolHandle
impl UnwindSafe for PluginToolHandle
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