pub struct App { /* private fields */ }Expand description
The main application, containing the state
Implementations§
Source§impl App
impl App
pub fn new() -> Self
Sourcepub fn update_on_tick(&mut self) -> AppReturn
pub fn update_on_tick(&mut self) -> AppReturn
We could update the app or dispatch event on tick
pub fn on_fetch_resource(&mut self, resource: Resource) -> AppReturn
pub fn update_on_new_block_found(&mut self, block_height: u64) -> AppReturn
pub fn actions(&self) -> &Actions
pub fn state(&self) -> &AppState
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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