Struct dfhack_remote::Rename
source · [−]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: StringName of the plugin. All the RPC are attached to this name.
Implementations
sourceimpl<E, TProtocol> Rename<E, TProtocol> where
TProtocol: ProtocolTrait<E>,
impl<E, TProtocol> Rename<E, TProtocol> where
TProtocol: ProtocolTrait<E>,
sourcepub fn new(protocol: Rc<RefCell<TProtocol>>) -> Rename<E, TProtocol>
pub fn new(protocol: Rc<RefCell<TProtocol>>) -> Rename<E, TProtocol>
Instanciate a new plugin instance
sourcepub fn rename_squad(&mut self, request: RenameSquadIn) -> Result<(), E>
pub fn rename_squad(&mut self, request: RenameSquadIn) -> Result<(), E>
Method RenameSquad from the plugin rename
sourcepub fn rename_unit(&mut self, request: RenameUnitIn) -> Result<(), E>
pub fn rename_unit(&mut self, request: RenameUnitIn) -> Result<(), E>
Method RenameUnit from the plugin rename
sourcepub fn rename_building(&mut self, request: RenameBuildingIn) -> Result<(), E>
pub fn rename_building(&mut self, request: RenameBuildingIn) -> Result<(), E>
Method RenameBuilding from the plugin rename
Auto Trait Implementations
impl<E, TProtocol> !RefUnwindSafe for Rename<E, TProtocol>
impl<E, TProtocol> !Send for Rename<E, TProtocol>
impl<E, TProtocol> !Sync for Rename<E, TProtocol>
impl<E, TProtocol> Unpin for Rename<E, TProtocol> where
E: Unpin,
impl<E, TProtocol> !UnwindSafe for Rename<E, TProtocol>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more