[][src]Trait yarte_wasm_app::App

pub trait App: Default + Sized + Unpin + 'static {
    type BlackBox: Default;
    fn start(self) -> Addr<Self>
    where
        Self: App
, { ... }
fn start_default() -> Addr<Self>
    where
        Self: App
, { ... } }

App are object which encapsulate state and behavior

App communicate exclusively by directional exchanging messages The sender can't wait the response since it never answer

Associated Types

Loading content...

Provided methods

fn start(self) -> Addr<Self> where
    Self: App

Start a new asynchronous app, returning its address.

fn start_default() -> Addr<Self> where
    Self: App

Construct and start a new asynchronous app, returning its address.

This is constructs a new app using the Default trait, and invokes its start method.

Loading content...

Implementors

Loading content...