#[repr(C)]pub struct PluginInfo {
pub abi_version: u32,
pub name: *const c_char,
pub version: *const c_char,
}Expand description
What a plugin returns from its InitFn. The strings must have
'static lifetime (typically string literals via the
declare_plugin! macro).
Fields§
§abi_version: u32Must equal ABI_VERSION. Redundant with the host-side check,
but lets the host reject a plugin that lied about its ABI.
name: *const c_charPlugin name, NUL-terminated. Used for zmodload -R listing and
zmodload -uR <name> unload.
version: *const c_charPlugin version, NUL-terminated. Informational.
Trait Implementations§
impl Sync for PluginInfo
Auto Trait Implementations§
impl !Send for PluginInfo
impl Freeze for PluginInfo
impl RefUnwindSafe 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