Skip to main content

PluginRegistry

Struct PluginRegistry 

Source
#[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

  • descriptors must point to a valid array of plugin_count pointers.
  • Each pointer in the array must point to a valid PluginDescriptor.
  • All pointed-to data must have 'static lifetime (typically link-time constants).

Fields§

§magic: [u8; 8]

Magic bytes — must equal FIDIUS_MAGIC (b"FIDIUS\0\0").

§registry_version: u32

Layout version of this struct. Must equal REGISTRY_VERSION.

§plugin_count: u32

Number of plugin descriptors in this registry.

§descriptors: *const *const PluginDescriptor

Pointer to an array of plugin_count descriptor pointers.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.