pub struct App<'a> {
pub state: AppState<'a>,
/* private fields */
}
Fields
state: AppState<'a>
Implementations
sourceimpl<'a> App<'a>
impl<'a> App<'a>
pub fn new(io_tx: Sender<IoEvent>) -> Self
pub async fn do_action(&mut self, key: Key) -> AppReturn
pub async fn update_on_tick(&mut self) -> AppReturn
pub async fn dispatch(&mut self, action: IoEvent)
pub fn actions(&self) -> &Actions
pub fn state(&self) -> &AppState<'_>
pub fn state_mut(&'a mut self) -> &'a mut AppState<'_>
pub fn is_loading(&self) -> bool
pub fn initialized(&mut self)
pub fn loaded(&mut self)
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for App<'a>
impl<'a> Send for App<'a>
impl<'a> Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> !UnwindSafe for App<'a>
Blanket Implementations
sourceimpl<T> Background for T
impl<T> Background for T
sourcefn bg(self, rgb: RGB<u8>) -> WithBackground<T>
fn bg(self, rgb: RGB<u8>) -> WithBackground<T>
Adds the given background color
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Foreground for T
impl<T> Foreground for T
sourcefn fg(self, rgb: RGB<u8>) -> WithForeground<T>
fn fg(self, rgb: RGB<u8>) -> WithForeground<T>
Adds the given foreground color
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more