Struct dfhack_remote::Core
source · [−]Expand description
RPC for the “” plugin.
Fields
channel: &'a mut TChannelReference to the client to exchange messages.
Implementations
sourceimpl<'a, TChannel> Core<'a, TChannel> where
TChannel: Channel,
impl<'a, TChannel> Core<'a, TChannel> where
TChannel: Channel,
sourcepub fn new(channel: &'a mut TChannel) -> Core<'a, TChannel>
pub fn new(channel: &'a mut TChannel) -> Core<'a, TChannel>
Initialize the plugin from a channel to DFHack.
sourcepub fn bind_method(
&mut self,
request: CoreBindRequest
) -> Result<CoreBindReply, <TChannel as Channel>::TError>
pub fn bind_method(
&mut self,
request: CoreBindRequest
) -> Result<CoreBindReply, <TChannel as Channel>::TError>
Method BindMethod from the plugin ``
sourcepub fn core_resume(&mut self) -> Result<i32, <TChannel as Channel>::TError>
pub fn core_resume(&mut self) -> Result<i32, <TChannel as Channel>::TError>
Method CoreResume from the plugin ``
sourcepub fn core_suspend(&mut self) -> Result<i32, <TChannel as Channel>::TError>
pub fn core_suspend(&mut self) -> Result<i32, <TChannel as Channel>::TError>
Method CoreSuspend from the plugin ``
sourcepub fn get_df_version(
&mut self
) -> Result<String, <TChannel as Channel>::TError>
pub fn get_df_version(
&mut self
) -> Result<String, <TChannel as Channel>::TError>
Method GetDFVersion from the plugin ``
sourcepub fn get_version(&mut self) -> Result<String, <TChannel as Channel>::TError>
pub fn get_version(&mut self) -> Result<String, <TChannel as Channel>::TError>
Method GetVersion from the plugin ``
sourcepub fn get_world_info(
&mut self
) -> Result<GetWorldInfoOut, <TChannel as Channel>::TError>
pub fn get_world_info(
&mut self
) -> Result<GetWorldInfoOut, <TChannel as Channel>::TError>
Method GetWorldInfo from the plugin ``
sourcepub fn list_enums(
&mut self
) -> Result<ListEnumsOut, <TChannel as Channel>::TError>
pub fn list_enums(
&mut self
) -> Result<ListEnumsOut, <TChannel as Channel>::TError>
Method ListEnums from the plugin ``
sourcepub fn list_job_skills(
&mut self
) -> Result<ListJobSkillsOut, <TChannel as Channel>::TError>
pub fn list_job_skills(
&mut self
) -> Result<ListJobSkillsOut, <TChannel as Channel>::TError>
Method ListJobSkills from the plugin ``
sourcepub fn list_materials(
&mut self,
request: ListMaterialsIn
) -> Result<ListMaterialsOut, <TChannel as Channel>::TError>
pub fn list_materials(
&mut self,
request: ListMaterialsIn
) -> Result<ListMaterialsOut, <TChannel as Channel>::TError>
Method ListMaterials from the plugin ``
sourcepub fn list_squads(
&mut self,
request: ListSquadsIn
) -> Result<ListSquadsOut, <TChannel as Channel>::TError>
pub fn list_squads(
&mut self,
request: ListSquadsIn
) -> Result<ListSquadsOut, <TChannel as Channel>::TError>
Method ListSquads from the plugin ``
sourcepub fn list_units(
&mut self,
request: ListUnitsIn
) -> Result<ListUnitsOut, <TChannel as Channel>::TError>
pub fn list_units(
&mut self,
request: ListUnitsIn
) -> Result<ListUnitsOut, <TChannel as Channel>::TError>
Method ListUnits from the plugin ``
sourcepub fn run_command(
&mut self,
request: CoreRunCommandRequest
) -> Result<(), <TChannel as Channel>::TError>
pub fn run_command(
&mut self,
request: CoreRunCommandRequest
) -> Result<(), <TChannel as Channel>::TError>
Method RunCommand from the plugin ``
sourcepub fn run_lua(
&mut self,
request: CoreRunLuaRequest
) -> Result<StringListMessage, <TChannel as Channel>::TError>
pub fn run_lua(
&mut self,
request: CoreRunLuaRequest
) -> Result<StringListMessage, <TChannel as Channel>::TError>
Method RunLua from the plugin ``
sourcepub fn set_unit_labors(
&mut self,
request: SetUnitLaborsIn
) -> Result<(), <TChannel as Channel>::TError>
pub fn set_unit_labors(
&mut self,
request: SetUnitLaborsIn
) -> Result<(), <TChannel as Channel>::TError>
Method SetUnitLabors from the plugin ``
Auto Trait Implementations
impl<'a, TChannel> RefUnwindSafe for Core<'a, TChannel> where
TChannel: RefUnwindSafe,
impl<'a, TChannel> Send for Core<'a, TChannel> where
TChannel: Send,
impl<'a, TChannel> Sync for Core<'a, TChannel> where
TChannel: Sync,
impl<'a, TChannel> Unpin for Core<'a, TChannel>
impl<'a, TChannel> !UnwindSafe for Core<'a, TChannel>
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