Struct sc2::observer::ObserverClient [−][src]
pub struct ObserverClient { /* fields omitted */ }
An interface used to observer the game state.
Methods
impl ObserverClient
[src]
impl ObserverClient
pub fn observe(
&self
) -> impl Future<Item = Rc<Observation>, Error = Error>
[src]
pub fn observe(
&self
) -> impl Future<Item = Rc<Observation>, Error = Error>
Observe the current game state.
pub fn get_map_info(
&self
) -> impl Future<Item = Rc<MapInfo>, Error = Error>
[src]
pub fn get_map_info(
&self
) -> impl Future<Item = Rc<MapInfo>, Error = Error>
Get information about the current map.
pub fn get_unit_data(
&self
) -> impl Future<Item = Rc<HashMap<UnitType, UnitTypeData>>, Error = Error>
[src]
pub fn get_unit_data(
&self
) -> impl Future<Item = Rc<HashMap<UnitType, UnitTypeData>>, Error = Error>
Get data about each unit type.
pub fn get_ability_data(
&self
) -> impl Future<Item = Rc<HashMap<Ability, AbilityData>>, Error = Error>
[src]
pub fn get_ability_data(
&self
) -> impl Future<Item = Rc<HashMap<Ability, AbilityData>>, Error = Error>
Get data about each ability.
pub fn get_upgrade_data(
&self
) -> impl Future<Item = Rc<HashMap<Upgrade, UpgradeData>>, Error = Error>
[src]
pub fn get_upgrade_data(
&self
) -> impl Future<Item = Rc<HashMap<Upgrade, UpgradeData>>, Error = Error>
Get data about each upgrade.
pub fn get_buff_data(
&self
) -> impl Future<Item = Rc<HashMap<Buff, BuffData>>, Error = Error>
[src]
pub fn get_buff_data(
&self
) -> impl Future<Item = Rc<HashMap<Buff, BuffData>>, Error = Error>
Get data about each buff.
Trait Implementations
impl Debug for ObserverClient
[src]
impl Debug for ObserverClient
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ObserverClient
[src]
impl Clone for ObserverClient
fn clone(&self) -> ObserverClient
[src]
fn clone(&self) -> ObserverClient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !Send for ObserverClient
impl !Send for ObserverClient
impl !Sync for ObserverClient
impl !Sync for ObserverClient