[][src]Enum wasm_pack::install::InstallMode

pub enum InstallMode {
    Normal,
    Noinstall,
    Force,
}

The InstallMode determines which mode of initialization we are running, and what install steps we perform.

Variants

Normal

Perform all the install steps.

Noinstall

Don't install tools like wasm-bindgen, just use the global environment's existing versions to do builds.

Force

Skip the rustc version check

Methods

impl InstallMode[src]

pub fn install_permitted(self) -> bool[src]

Determines if installation is permitted during a function call based on --mode flag

Trait Implementations

impl Clone for InstallMode[src]

impl Copy for InstallMode[src]

impl Debug for InstallMode[src]

impl Default for InstallMode[src]

impl FromStr for InstallMode[src]

type Err = Error

The associated error which can be returned from parsing.

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> Erased for T

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<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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