pub struct MobilerShell<A>(/* private fields */);Expand description
Crux adapter: turns a MobilerApp into an app speaking the fixed ABI.
Trait Implementations§
Source§impl<A: MobilerApp> App for MobilerShell<A>
impl<A: MobilerApp> App for MobilerShell<A>
Source§type Event = Action
type Event = Action
Event, typically an enum, defines the actions that can be taken to update the application state.Source§type Model = <A as MobilerApp>::Model
type Model = <A as MobilerApp>::Model
Model, typically a struct defines the internal state of the applicationSource§type ViewModel = Widget
type ViewModel = Widget
ViewModel, typically a struct describes the user interface that should be
displayed to the userSource§type Effect = Effect
type Effect = Effect
Effect, the enum carrying effect requests created by capabilities.
Normally this type is derived from Capabilities using the crux_macros::Effect derive macroAuto Trait Implementations§
impl<A> Freeze for MobilerShell<A>
impl<A> RefUnwindSafe for MobilerShell<A>
impl<A> Send for MobilerShell<A>
impl<A> Sync for MobilerShell<A>
impl<A> Unpin for MobilerShell<A>
impl<A> UnsafeUnpin for MobilerShell<A>
impl<A> UnwindSafe for MobilerShell<A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more