[][src]Struct screeps::objects::StructureController

pub struct StructureController(_);

Implementations

impl StructureController[src]

pub fn is_power_enabled(&self) -> bool[src]

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

pub fn progress(&self) -> Option<u32>[src]

pub fn progress_total(&self) -> Option<u32>[src]

pub fn safe_mode(&self) -> Option<u32>[src]

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

pub fn safe_mode_cooldown(&self) -> Option<u32>[src]

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

pub fn upgrade_blocked(&self) -> Option<u32>[src]

impl StructureController[src]

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

pub fn reservation(&self) -> Option<Reservation>[src]

pub fn sign(&self) -> Option<Sign>[src]

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

Trait Implementations

impl AsRef<Reference> for StructureController[src]

impl Clone for StructureController[src]

impl Eq for StructureController[src]

impl From<StructureController> for Reference[src]

impl FromExpectedType<Reference> for StructureController[src]

impl HasId for StructureController[src]

impl InstanceOf for StructureController[src]

impl JsSerialize for StructureController[src]

impl JsSerializeOwned for StructureController[src]

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

impl OwnedStructureProperties for StructureController[src]

impl PartialEq<StructureController> for StructureController[src]

impl ReferenceType for StructureController[src]

impl RoomObjectProperties for StructureController[src]

impl StructureProperties for StructureController[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Reference> for StructureController[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<StructureController> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Value> for StructureController[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> HasPosition for T where
    T: RoomObjectProperties
[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> SizedRoomObject for T where
    T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties
[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.