#[repr(C)]pub struct PluginVTable<StartArgs, Instance> {
pub plugin_version: &'static str,
pub plugin_long_version: &'static str,
pub start: fn(&str, &StartArgs) -> ZResult<Instance>,
}
Fields§
§plugin_version: &'static str
§plugin_long_version: &'static str
§start: fn(&str, &StartArgs) -> ZResult<Instance>
Implementations§
Trait Implementations§
Source§impl<StartArgs, Instance> StructVersion for PluginVTable<StartArgs, Instance>
impl<StartArgs, Instance> StructVersion for PluginVTable<StartArgs, Instance>
Source§fn struct_version() -> u64
fn struct_version() -> u64
The version of the structure which implements this trait. After any change in the structure or its dependencies
which may affect the ABI, this version should be incremented.
Source§fn struct_features() -> &'static str
fn struct_features() -> &'static str
The features enabled during compilation of the structure implementing this trait.
Different features between the plugin and the host may cause ABI incompatibility even if the structure version is the same.
Use
concat_enabled_features!
to generate this stringAuto Trait Implementations§
impl<StartArgs, Instance> Freeze for PluginVTable<StartArgs, Instance>
impl<StartArgs, Instance> RefUnwindSafe for PluginVTable<StartArgs, Instance>
impl<StartArgs, Instance> Send for PluginVTable<StartArgs, Instance>
impl<StartArgs, Instance> Sync for PluginVTable<StartArgs, Instance>
impl<StartArgs, Instance> Unpin for PluginVTable<StartArgs, Instance>
impl<StartArgs, Instance> UnwindSafe for PluginVTable<StartArgs, Instance>
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