[][src]Enum wasi_worker_cli::Cli

pub enum Cli {
    Install,
    Deploy,
}

Install JavaScript glue code and WASM toolset for wasi-worker browser worker to function.

Details https://crates.io/crates/wasi-worker

Variants

Install

Install static files and worker.rs template in current crate.

Note! it adds [[bin]] target to ./Cargo.toml and sets wasi-worker dependency

Deploy

Executes cargo build --bin worker and deploys with glue code under ./dist

Implementations

impl Cli[src]

pub fn exec(&self) -> Result<()>[src]

Trait Implementations

impl Debug for Cli[src]

impl StructOpt for Cli[src]

Auto Trait Implementations

impl RefUnwindSafe for Cli

impl Send for Cli

impl Sync for Cli

impl Unpin for Cli

impl UnwindSafe for Cli

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, 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.