Struct screeps::objects::AccountPowerCreep[][src]

pub struct AccountPowerCreep(_);

Implementations

impl AccountPowerCreep[src]

pub fn class(&self) -> PowerCreepClass[src]

pub fn delete(&self) -> ReturnCode[src]

pub fn cancel_delete(&self) -> ReturnCode[src]

pub fn power_keys(&self) -> Vec<PowerType>[src]

pub fn power_level(&self, power_type: PowerType) -> Option<u8>[src]

pub fn rename(&self, new_name: &str) -> ReturnCode[src]

pub fn upgrade(&self, power_type: PowerType) -> ReturnCode[src]

pub fn get_power_creep(&self) -> Option<PowerCreep>[src]

Convert this AccountPowerCreep, which can represent either a spawned or unspawned power creep, into a full PowerCreep object representation

impl AccountPowerCreep[src]

pub fn level(&self) -> u32[src]

pub fn shard(&self) -> Option<String>[src]

pub fn delete_time(&self) -> Option<u64>[src]

pub fn spawn_cooldown_time(&self) -> Option<u64>[src]

impl AccountPowerCreep[src]

pub fn spawn(&self, target: &StructurePowerSpawn) -> ReturnCode[src]

Trait Implementations

impl AsRef<Reference> for AccountPowerCreep[src]

impl Clone for AccountPowerCreep[src]

impl FromExpectedType<Reference> for AccountPowerCreep[src]

impl InstanceOf for AccountPowerCreep[src]

impl JsSerialize for AccountPowerCreep[src]

impl JsSerializeOwned for AccountPowerCreep[src]

impl<'_r> JsSerializeOwned for &'_r AccountPowerCreep[src]

impl ReferenceType for AccountPowerCreep[src]

impl<'_r> TryFrom<&'_r Reference> for AccountPowerCreep[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for AccountPowerCreep[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<AccountPowerCreep> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for AccountPowerCreep[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for AccountPowerCreep[src]

type Error = ConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromExpectedType<Value> for T where
    T: FromExpectedType<Reference>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoExpectedType<U> for T where
    U: FromExpectedType<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.