pub struct Counter;Trait Implementations§
Source§impl App for Counter
impl App for Counter
Source§type Event = Event
type Event = Event
Event, typically an
enum, defines the actions that can be taken to update the application state.Source§type ViewModel = UiModel
type ViewModel = UiModel
ViewModel, typically a
struct describes the user interface that should be
displayed to the userSource§type Capabilities = Capabilities
type Capabilities = Capabilities
Capabilities, typically a
struct, lists the capabilities used by this application
Typically, Capabilities should contain at least an instance of the built-in Render capability.Source§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 Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
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