[][src]Enum screeps_api::RecentPvpArgs

pub enum RecentPvpArgs {
    WithinLast {
        ticks: u32,
    },
    Since {
        time: u32,
    },
}

Call parameters for requesting recent pvp

Variants

WithinLast

Retrieves rooms where pvp has occurred recently, with a given number of game ticks.

Fields of WithinLast

ticks: u32

The interval of game ticks to request. It is unknown the maximum interval that may be requested.

Since

Retrieves rooms where pvp has occurred since a given game time.

Fields of Since

time: u32

The game "time" (tick number) to request PvP since. It is unknown how far back of a time may be requested.

Methods

impl RecentPvpArgs[src]

pub fn since(tick: u32) -> RecentPvpArgs[src]

Creates a new PvP call parameter to request any PvP occurring since the given game tick.

pub fn within(ticks: u32) -> RecentPvpArgs[src]

Creates a new PvP call parameter to request any PvP occurring within the last x ticks.

Trait Implementations

impl PartialEq<RecentPvpArgs> for RecentPvpArgs[src]

impl Clone for RecentPvpArgs[src]

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

Performs copy-assignment from source. Read more

impl Eq for RecentPvpArgs[src]

impl Copy for RecentPvpArgs[src]

impl Debug for RecentPvpArgs[src]

impl Hash for RecentPvpArgs[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,