pub struct App<'a> {
pub state: AppState<'a>,
pub config: AppConfig,
/* private fields */
}
Fields§
§state: AppState<'a>
§config: AppConfig
Implementations§
source§impl<'a> App<'a>
impl<'a> App<'a>
pub fn new(io_tx: Sender<IoEvent>, image_mode: ImageMode) -> 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, path: &str)
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§
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
source§impl<T> Colorable for T
impl<T> Colorable for T
source§fn bg<TFormatColor>(
self,
formatter: TFormatColor
) -> WithBackground<Self, TFormatColor>where
TFormatColor: FormatColor,
fn bg<TFormatColor>( self, formatter: TFormatColor ) -> WithBackground<Self, TFormatColor>where TFormatColor: FormatColor,
Add a background color
source§fn fg<TFormatColor>(
self,
formatter: TFormatColor
) -> WithForeground<Self, TFormatColor>where
TFormatColor: FormatColor,
fn fg<TFormatColor>( self, formatter: TFormatColor ) -> WithForeground<Self, TFormatColor>where TFormatColor: FormatColor,
Add a foreground color