pub struct InitializedPlugin {
    pub supported_api: APIVersion,
    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: APIVersioncreate_account: extern "C" fn() -> Accountdestroy_account: extern "C" fn(acc: Account)post_message: extern "C" fn(msg: *const Message) -> SendStatusprint: extern "C" fn(acc: Account)

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.