pub struct Core<E, TProtocol> where
    TProtocol: ProtocolTrait<E>, 
{ pub protocol: Rc<RefCell<TProtocol>>, pub name: String, /* private fields */ }
Expand description

RPC for the “” plugin.

Fields

protocol: Rc<RefCell<TProtocol>>

Reference to the client to exchange messages.

name: String

Name of the plugin. All the RPC are attached to this name.

Implementations

Instanciate a new plugin instance

Method GetVersion from the plugin ``

Method GetDFVersion from the plugin ``

Method GetWorldInfo from the plugin ``

Method ListEnums from the plugin ``

Method ListJobSkills from the plugin ``

Method ListMaterials from the plugin ``

Method ListUnits from the plugin ``

Method ListSquads from the plugin ``

Method SetUnitLabors from the plugin ``

Method BindMethod from the plugin ``

Method RunCommand from the plugin ``

Method CoreSuspend from the plugin ``

Method CoreResume from the plugin ``

Method RunLua from the plugin ``

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.