[][src]Trait yarte_wasm_app::App

pub trait App: Default + Sized + Unpin + 'static {
    type BlackBox;
    type Message: 'static;
    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

type BlackBox

type Message: 'static

Loading content...

Provided methods

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