#[repr(C)]pub struct PluginRegistry {
pub magic: [u8; 8],
pub registry_version: u32,
pub plugin_count: u32,
pub descriptors: *const *const PluginDescriptor,
}Expand description
Top-level registry exported by every Fidius plugin dylib.
Each dylib exports exactly one FIDIUS_PLUGIN_REGISTRY static symbol
pointing to this struct. The registry contains pointers to one or more
PluginDescriptors (supporting multiple plugins per dylib).
§Safety
descriptorsmust point to a valid array ofplugin_countpointers.- Each pointer in the array must point to a valid
PluginDescriptor. - All pointed-to data must have
'staticlifetime (typically link-time constants).
Fields§
§magic: [u8; 8]Magic bytes — must equal FIDIUS_MAGIC (b"FIDIUS\0\0").
registry_version: u32Layout version of this struct. Must equal REGISTRY_VERSION.
plugin_count: u32Number of plugin descriptors in this registry.
descriptors: *const *const PluginDescriptorPointer to an array of plugin_count descriptor pointers.
Trait Implementations§
impl Send for PluginRegistry
impl Sync for PluginRegistry
Auto Trait Implementations§
impl Freeze for PluginRegistry
impl RefUnwindSafe for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
impl UnwindSafe for PluginRegistry
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