pub struct PluginSymbols {
pub create: Symbol<'static, unsafe extern "C" fn() -> *mut dyn AgentPlugin>,
pub destroy: Symbol<'static, unsafe extern "C" fn(*mut dyn AgentPlugin)>,
pub metadata: Symbol<'static, unsafe extern "C" fn() -> PluginMetadata>,
pub api_version: Symbol<'static, unsafe extern "C" fn() -> u32>,
}Expand description
Required symbols for a plugin library
Fields§
§create: Symbol<'static, unsafe extern "C" fn() -> *mut dyn AgentPlugin>Create plugin function
destroy: Symbol<'static, unsafe extern "C" fn(*mut dyn AgentPlugin)>Destroy plugin function
metadata: Symbol<'static, unsafe extern "C" fn() -> PluginMetadata>Get plugin metadata function
api_version: Symbol<'static, unsafe extern "C" fn() -> u32>Get API version function
Auto Trait Implementations§
impl Freeze for PluginSymbols
impl RefUnwindSafe for PluginSymbols
impl Send for PluginSymbols
impl Sync for PluginSymbols
impl Unpin for PluginSymbols
impl UnsafeUnpin for PluginSymbols
impl UnwindSafe for PluginSymbols
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more