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

RPC for the “rename” 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 RenameSquad from the plugin rename

Method RenameUnit from the plugin rename

Method RenameBuilding from the plugin rename

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.