#[repr(C)]pub struct GuestPlugin {
pub plugin_name: *const c_char,
pub guest_binary_path: *const c_char,
pub msg_receive_cb: ChannelCB,
}Expand description
A guest plugin to be loaded by the guest plugin manager
Fields§
§plugin_name: *const c_char§guest_binary_path: *const c_char§msg_receive_cb: ChannelCBImplementations§
Source§impl GuestPlugin
impl GuestPlugin
Sourcepub fn new(plugin_name: String, msg_receive_cb: ChannelCB) -> Self
pub fn new(plugin_name: String, msg_receive_cb: ChannelCB) -> Self
Initiailizes a GuestPlugin to be passed to add_guest_plugin by name, finding
the path of the plugin by name lookup.
Sourcepub fn new_with_path(
plugin_name: String,
guest_binary_path: &Path,
msg_receive_cb: ChannelCB,
) -> Self
pub fn new_with_path( plugin_name: String, guest_binary_path: &Path, msg_receive_cb: ChannelCB, ) -> Self
Initiailizes a GuestPlugin to be passed to add_guest_plugin by name, using
a set path rather than lookup by name.
Auto Trait Implementations§
impl Freeze for GuestPlugin
impl RefUnwindSafe for GuestPlugin
impl !Send for GuestPlugin
impl !Sync for GuestPlugin
impl Unpin for GuestPlugin
impl UnwindSafe for GuestPlugin
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