Struct screeps::objects::StructurePortal
[−]
[src]
pub struct StructurePortal(_);
Trait Implementations
impl Clone for StructurePortal
[src]
fn clone(&self) -> StructurePortal
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for StructurePortal
[src]
impl From<StructurePortal> for Reference
[src]
fn from(wrapper: StructurePortal) -> Reference
[src]
Performs the conversion.
impl TryFrom<Value> for StructurePortal
[src]
type Error = <Value as TryInto<Reference>>::Error
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<StructurePortal, Self::Error>
[src]
Performs the conversion.
impl RoomObjectProperties for StructurePortal
[src]
impl StructureProperties for StructurePortal
[src]
fn hits(&self) -> i32
[src]
fn hits_max(&self) -> i32
[src]
fn id(&self) -> String
[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