Struct dfhack_remote::Rename

source ·
pub struct Rename<'a, TChannel>
where TChannel: Channel,
{ pub channel: &'a mut TChannel, }
Expand description

RPC for the “rename” plugin.

Fields§

§channel: &'a mut TChannel

Reference to the client to exchange messages.

Implementations§

source§

impl<'a, TChannel> Rename<'a, TChannel>
where TChannel: Channel,

source

pub fn new(channel: &'a mut TChannel) -> Rename<'a, TChannel>

Initialize the plugin from a channel to DFHack.

source

pub fn rename_building( &mut self, request: RenameBuildingIn ) -> Result<(), <TChannel as Channel>::TError>

Method RenameBuilding from the plugin rename

source

pub fn rename_squad( &mut self, request: RenameSquadIn ) -> Result<(), <TChannel as Channel>::TError>

Method RenameSquad from the plugin rename

source

pub fn rename_unit( &mut self, request: RenameUnitIn ) -> Result<(), <TChannel as Channel>::TError>

Method RenameUnit from the plugin rename

Auto Trait Implementations§

§

impl<'a, TChannel> Freeze for Rename<'a, TChannel>

§

impl<'a, TChannel> RefUnwindSafe for Rename<'a, TChannel>
where TChannel: RefUnwindSafe,

§

impl<'a, TChannel> Send for Rename<'a, TChannel>
where TChannel: Send,

§

impl<'a, TChannel> Sync for Rename<'a, TChannel>
where TChannel: Sync,

§

impl<'a, TChannel> Unpin for Rename<'a, TChannel>

§

impl<'a, TChannel> !UnwindSafe for Rename<'a, TChannel>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.