pub struct PluginInfo {
pub name: String,
pub interface_name: String,
pub interface_hash: u64,
pub interface_version: u32,
pub capabilities: u64,
pub buffer_strategy: BufferStrategyKind,
pub runtime: PluginRuntimeKind,
}Expand description
Owned metadata for a discovered or loaded plugin.
All data copied from FFI descriptor — no raw pointers. capabilities and
buffer_strategy are cdylib-specific concepts; for python plugins they
take their default values (0 / PluginAllocated) and have no runtime
meaning.
Fields§
§name: StringHuman-readable plugin name (e.g., “BlurFilter”).
interface_name: StringInterface trait name (e.g., “ImageFilter”).
interface_hash: u64FNV-1a hash of required method signatures.
interface_version: u32User-specified interface version.
capabilities: u64Capability bitfield (optional method support). Cdylib only.
buffer_strategy: BufferStrategyKindBuffer management strategy. Cdylib only.
runtime: PluginRuntimeKindRuntime kind. New in 0.2 — defaults to Cdylib for backward
compatibility with code that constructs PluginInfo directly.
Implementations§
Trait Implementations§
Source§impl Clone for PluginInfo
impl Clone for PluginInfo
Source§fn clone(&self) -> PluginInfo
fn clone(&self) -> PluginInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PluginInfo
impl RefUnwindSafe for PluginInfo
impl Send for PluginInfo
impl Sync for PluginInfo
impl Unpin for PluginInfo
impl UnsafeUnpin for PluginInfo
impl UnwindSafe for PluginInfo
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