[][src]Enum spyparty::Mission

pub enum Mission {
    BugAmbassador,
    ContactDoubleAgent,
    FingerprintAmbassador,
    InspectStatues,
    PurloinGuestList,
    SeduceTarget,
    SwapStatue,
    TransferMicrofilm,
}

The missions the spy tries to complete.

Variants

BugAmbassadorContactDoubleAgentFingerprintAmbassadorInspectStatuesPurloinGuestListSeduceTargetSwapStatueTransferMicrofilm

Methods

impl Mission[src]

pub fn unpack_missions(data: u32) -> Vec<Mission>[src]

Unpacks a bitfield of missions into a vector.

pub fn short_display(&self) -> &str[src]

Return the shorthand for a mission.

Trait Implementations

impl PartialEq<Mission> for Mission[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Display for Mission[src]

impl Debug for Mission[src]

impl<'a> TryFrom<&'a str> for Mission[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Mission

impl Sync for Mission

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]