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

pub enum OrderOutcome<'a> {
    Prevented(&'a MappedRetreatOrder),
    InvalidDestination(DestStatus),
    InvalidRecipient,
    Moves,
    DisbandsAsOrdered,
}

The outcome of a specific retreat phase order.

Variants

Prevented(&'a MappedRetreatOrder)

The order was prevented by one or more other retreat orders.

InvalidDestination(DestStatus)

The order destination was invalid. The DestStatus provides information on why the destination was invalid.

InvalidRecipient

The order was issued to a region that does not contain a retreating unit.

The region may be vacant, or may contain a unit that was not dislodged.

Moves

The unit successfully retreats to a new region

DisbandsAsOrdered

The unit was ordered to disband and did so.

Implementations

impl<'_> OrderOutcome<'_>[src]

pub fn did_disband(&self) -> bool[src]

Check if the ordered unit disbanded at the conclusion of the retreat phase.

Trait Implementations

impl<'a> Clone for OrderOutcome<'a>[src]

impl<'a> Debug for OrderOutcome<'a>[src]

impl<'a> Eq for OrderOutcome<'a>[src]

impl<'_> PartialEq<DestStatus> for OrderOutcome<'_>[src]

Most DestStatus values block a retreat-phase move order from succeeding or exerting influence on the move destination. These values can appear in the InvalidDestination variant of OrderOutcome. Note that DestStatus::Available will never equal an order outcome.

impl<'_> PartialEq<OrderOutcome<'_>> for DestStatus[src]

impl<'a> PartialEq<OrderOutcome<'a>> for OrderOutcome<'a>[src]

impl<'a> StructuralEq for OrderOutcome<'a>[src]

impl<'a> StructuralPartialEq for OrderOutcome<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for OrderOutcome<'a>

impl<'a> Send for OrderOutcome<'a>

impl<'a> Sync for OrderOutcome<'a>

impl<'a> Unpin for OrderOutcome<'a>

impl<'a> UnwindSafe for OrderOutcome<'a>

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.