Struct screeps::objects::StructureTerminal
source · pub struct StructureTerminal(_);
Implementations
sourceimpl StructureTerminal
impl StructureTerminal
pub fn send(
&self,
resource_type: ResourceType,
amount: u32,
destination: &str,
description: Option<&str>
) -> ReturnCode
Trait Implementations
sourceimpl AsRef<Reference> for StructureTerminal
impl AsRef<Reference> for StructureTerminal
sourceimpl Attackable for StructureTerminal
impl Attackable for StructureTerminal
sourceimpl Clone for StructureTerminal
impl Clone for StructureTerminal
sourcefn clone(&self) -> StructureTerminal
fn clone(&self) -> StructureTerminal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl From<StructureTerminal> for Reference
impl From<StructureTerminal> for Reference
sourcefn from(value: StructureTerminal) -> Self
fn from(value: StructureTerminal) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for StructureTerminal
impl FromExpectedType<Reference> for StructureTerminal
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl HasCooldown for StructureTerminal
impl HasCooldown for StructureTerminal
sourceimpl HasStore for StructureTerminal
impl HasStore for StructureTerminal
fn store_total(&self) -> u32
fn store_types(&self) -> Vec<ResourceType>
fn store_of(&self, ty: ResourceType) -> u32
fn energy(&self) -> u32
fn store_capacity(&self) -> u32
sourceimpl InstanceOf for StructureTerminal
impl InstanceOf for StructureTerminal
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type
Self
.sourceimpl OwnedStructureProperties for StructureTerminal
impl OwnedStructureProperties for StructureTerminal
fn my(&self) -> bool
fn owner_name(&self) -> Option<String>
fn as_owned_structure(self) -> OwnedStructure
sourceimpl PartialEq<StructureTerminal> for StructureTerminal
impl PartialEq<StructureTerminal> for StructureTerminal
sourcefn eq(&self, other: &StructureTerminal) -> bool
fn eq(&self, other: &StructureTerminal) -> bool
sourceimpl ReferenceType for StructureTerminal
impl ReferenceType for StructureTerminal
sourceunsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper.
Doesn’t do any type checking; highly unsafe to use! Read more
sourceimpl StructureProperties for StructureTerminal
impl StructureProperties for StructureTerminal
fn structure_type(&self) -> StructureType
fn destroy(&self) -> ReturnCode
fn is_active(&self) -> bool
sourcefn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
Usable on either owned structures or neutral structures in owned rooms,
returns
ReturnCode::NotOwner
otherwise. Read morefn as_structure(self) -> Structure
sourceimpl<'_r> TryFrom<&'_r Reference> for StructureTerminal
impl<'_r> TryFrom<&'_r Reference> for StructureTerminal
sourceimpl<'_r> TryFrom<&'_r Value> for StructureTerminal
impl<'_r> TryFrom<&'_r Value> for StructureTerminal
sourceimpl TryFrom<Reference> for StructureTerminal
impl TryFrom<Reference> for StructureTerminal
sourceimpl TryFrom<StructureTerminal> for Reference
impl TryFrom<StructureTerminal> for Reference
sourceimpl TryFrom<Value> for StructureTerminal
impl TryFrom<Value> for StructureTerminal
impl Eq for StructureTerminal
impl JsSerialize for StructureTerminal
impl Transferable for StructureTerminal
impl Withdrawable for StructureTerminal
Auto Trait Implementations
impl RefUnwindSafe for StructureTerminal
impl Send for StructureTerminal
impl Sync for StructureTerminal
impl Unpin for StructureTerminal
impl UnwindSafe for StructureTerminal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
impl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
fn from_expected_type(v: Value) -> Result<T, ConversionError>
sourceimpl<T> HasPosition for Twhere
T: RoomObjectProperties,
impl<T> HasPosition for Twhere
T: RoomObjectProperties,
fn pos(&self) -> RoomPosition
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more