pub struct InitializedPlugin {
pub supported_api: APIVersion,
pub name: String,
pub create_account: extern "C" fn() -> Account,
pub destroy_account: extern "C" fn(acc: Account),
pub post_message: extern "C" fn(msg: *const Message) -> SendStatus,
pub print: extern "C" fn(acc: Account),
}
Fields§
§supported_api: APIVersion
§name: String
§create_account: extern "C" fn() -> Account
§destroy_account: extern "C" fn(acc: Account)
§post_message: extern "C" fn(msg: *const Message) -> SendStatus
§print: extern "C" fn(acc: Account)
Implementations§
Source§impl InitializedPlugin
impl InitializedPlugin
pub fn new(plugin: &PluginInfo) -> Result<InitializedPlugin, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitializedPlugin
impl RefUnwindSafe for InitializedPlugin
impl Send for InitializedPlugin
impl Sync for InitializedPlugin
impl Unpin for InitializedPlugin
impl UnwindSafe for InitializedPlugin
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