pub enum AppState {
Init,
Initialized(InitializedData),
}Variants§
Init
Initialized(InitializedData)
Implementations§
Source§impl AppState
impl AppState
pub fn initialized() -> Self
pub fn is_initialized(&self) -> bool
pub fn incr_sleep(&mut self)
pub fn incr_tick(&mut self)
pub fn handle_new_block_found(&mut self, block_height: u64)
pub fn count_sleep(&self) -> Option<u32>
pub fn count_tick(&self) -> Option<u64>
pub fn duration(&self) -> Option<&Duration>
pub fn increment_delay(&mut self)
pub fn decrement_delay(&mut self)
pub fn handle_fetch_resource(&mut self, resource: Resource)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnwindSafe for AppState
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