Enum CooldownObject

Source
pub enum CooldownObject {
    Deposit(Deposit),
    StructureExtractor(StructureExtractor),
    StructureFactory(StructureFactory),
    StructureLab(StructureLab),
    StructureLink(StructureLink),
    StructureNuker(StructureNuker),
    StructureTerminal(StructureTerminal),
}

Variants§

§

Deposit(Deposit)

§

StructureExtractor(StructureExtractor)

§

StructureFactory(StructureFactory)

§

StructureLab(StructureLab)

§

StructureNuker(StructureNuker)

§

StructureTerminal(StructureTerminal)

Trait Implementations§

Source§

impl From<Deposit> for CooldownObject

Source§

fn from(v: Deposit) -> CooldownObject

Converts to this type from the input type.
Source§

impl From<StructureExtractor> for CooldownObject

Source§

fn from(v: StructureExtractor) -> CooldownObject

Converts to this type from the input type.
Source§

impl From<StructureFactory> for CooldownObject

Source§

fn from(v: StructureFactory) -> CooldownObject

Converts to this type from the input type.
Source§

impl From<StructureLab> for CooldownObject

Source§

fn from(v: StructureLab) -> CooldownObject

Converts to this type from the input type.
Source§

impl From<StructureLink> for CooldownObject

Source§

fn from(v: StructureLink) -> CooldownObject

Converts to this type from the input type.
Source§

impl From<StructureNuker> for CooldownObject

Source§

fn from(v: StructureNuker) -> CooldownObject

Converts to this type from the input type.
Source§

impl From<StructureTerminal> for CooldownObject

Source§

fn from(v: StructureTerminal) -> CooldownObject

Converts to this type from the input type.
Source§

impl HasCooldown for CooldownObject

Source§

fn cooldown(&self) -> u32

The number of ticks until the object can be used again.

Source§

impl TryInto<Deposit> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Deposit, <Self as TryInto<Deposit>>::Error>

Performs the conversion.
Source§

impl TryInto<StructureExtractor> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StructureExtractor, <Self as TryInto<StructureExtractor>>::Error>

Performs the conversion.
Source§

impl TryInto<StructureFactory> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StructureFactory, <Self as TryInto<StructureFactory>>::Error>

Performs the conversion.
Source§

impl TryInto<StructureLab> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StructureLab, <Self as TryInto<StructureLab>>::Error>

Performs the conversion.
Source§

impl TryInto<StructureLink> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StructureLink, <Self as TryInto<StructureLink>>::Error>

Performs the conversion.
Source§

impl TryInto<StructureNuker> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StructureNuker, <Self as TryInto<StructureNuker>>::Error>

Performs the conversion.
Source§

impl TryInto<StructureTerminal> for CooldownObject

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StructureTerminal, <Self as TryInto<StructureTerminal>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.