[][src]Enum diplomacy::judge::build::OrderOutcome

pub enum OrderOutcome {
    Succeeds,
    RedeploymentProhibited,
    InvalidProvince,
    ForeignControlled,
    OccupiedProvince,
    InvalidTerrain,
    DisbandingNonexistentUnit,
    DisbandingForeignUnit,
    AllBuildsUsed,
    AllDisbandsUsed,
}

The outcome of a build-turn order.

Variants

Succeeds

The build or disband order was successful, resulting in a change in units in the world.

RedeploymentProhibited

A nation cannot issue "build" and "disband" commands in the same turn, as this would constitute an illegal teleportation of power from the disbanding region to the building region.

InvalidProvince

The build command was to a province where the issuing nation cannot build.

ForeignControlled

The build command was to a home SC for the issuing power, but another power currently controls it.

OccupiedProvince

Build failed because the target province already has a friendly unit in it.

InvalidTerrain

The build command is to a region that is qualified for

DisbandingNonexistentUnit

Disband failed because no unit exists at that location.

DisbandingForeignUnit

Disband failed because the issuing power does not control the unit at that location.

AllBuildsUsed

The issuing nation has already had as many successful builds as they are allowed.

AllDisbandsUsed

The issuing nation has already had as many successful disbands as they are allowed.

Trait Implementations

impl Clone for OrderOutcome[src]

impl Copy for OrderOutcome[src]

impl Debug for OrderOutcome[src]

impl Eq for OrderOutcome[src]

impl From<OrderOutcome> for OrderState[src]

impl PartialEq<OrderOutcome> for OrderOutcome[src]

impl StructuralEq for OrderOutcome[src]

impl StructuralPartialEq for OrderOutcome[src]

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, U> Into<U> for T where
    U: From<T>, 
[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.