[][src]Struct screeps::objects::StructurePowerSpawn

pub struct StructurePowerSpawn(_);

Methods

impl StructurePowerSpawn[src]

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

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

impl StructurePowerSpawn[src]

Trait Implementations

impl HasId for StructurePowerSpawn[src]

fn id(&self) -> String[src]

impl RoomObjectProperties for StructurePowerSpawn[src]

fn room(&self) -> Room[src]

impl StructureProperties for StructurePowerSpawn[src]

fn structure_type(&self) -> StructureType[src]

fn destroy(&self) -> ReturnCode[src]

fn is_active(&self) -> bool[src]

fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode[src]

Usable on either owned structures or neutral structures in owned rooms, returns ReturnCode::NotOwner otherwise. Read more

fn as_structure(self) -> Structure where
    Self: SizedRoomObject
[src]

impl OwnedStructureProperties for StructurePowerSpawn[src]

fn my(&self) -> bool[src]

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

fn as_owned_structure(self) -> OwnedStructure where
    Self: SizedRoomObject
[src]

impl CanStoreEnergy for StructurePowerSpawn[src]

fn energy(&self) -> u32[src]

fn energy_capacity(&self) -> u32[src]

impl Transferable for StructurePowerSpawn[src]

impl Withdrawable for StructurePowerSpawn[src]

impl Attackable for StructurePowerSpawn[src]

fn hits(&self) -> u32[src]

fn hits_max(&self) -> u32[src]

impl FromExpectedType<Reference> for StructurePowerSpawn[src]

impl From<StructurePowerSpawn> for Reference[src]

impl PartialEq<StructurePowerSpawn> for StructurePowerSpawn[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for StructurePowerSpawn[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl AsRef<Reference> for StructurePowerSpawn[src]

impl Eq for StructurePowerSpawn[src]

impl TryFrom<StructurePowerSpawn> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for StructurePowerSpawn[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for StructurePowerSpawn[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

type Error = ConversionError

The type returned in the event of a conversion error.

impl JsSerialize for StructurePowerSpawn[src]

impl InstanceOf for StructurePowerSpawn[src]

impl ReferenceType for StructurePowerSpawn[src]

impl JsSerializeOwned for StructurePowerSpawn[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> HasPosition for T where
    T: RoomObjectProperties
[src]

impl<T> SizedRoomObject for T where
    T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties
[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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.