#[repr(C)]pub struct PluginDescriptor {
pub abi_major: u32,
pub abi_minor: u32,
pub name: AbiStr,
pub version: AbiStr,
pub description: AbiStr,
pub capabilities: *const AbiCapabilityEntry,
pub capability_count: usize,
pub vtable: PluginVTable,
}Expand description
What DYLIB_ENTRY_SYMBOL returns. abi_major and abi_minor come first
and stay first in every version, so a host can read them before trusting
the rest of the layout.
Fields§
§abi_major: u32§abi_minor: u32§name: AbiStr§version: AbiStr§description: AbiStr§capabilities: *const AbiCapabilityEntry§capability_count: usize§vtable: PluginVTableTrait Implementations§
Auto Trait Implementations§
impl !Send for PluginDescriptor
impl !Sync for PluginDescriptor
impl Freeze for PluginDescriptor
impl RefUnwindSafe for PluginDescriptor
impl Unpin for PluginDescriptor
impl UnsafeUnpin for PluginDescriptor
impl UnwindSafe for PluginDescriptor
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