Skip to main content

WebApp

Trait WebApp 

Source
pub trait WebApp:
    App<Event = Action, ViewModel = Widget, Effect = Effect>
    + Default
    + Send
    + Sync
    + 'static
where Self::Model: Default + Send + Sync,
{ }
Expand description

What a Mobiler app must be to render on the web: a crux App speaking the fixed ABI (Action in, Widget out, Effect for capabilities). MobilerShell<_> satisfies this automatically.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> WebApp for T
where T: App<Event = Action, ViewModel = Widget, Effect = Effect> + Default + Send + Sync + 'static, T::Model: Default + Send + Sync,