pub struct AppLifeCycle {
pub running: bool,
pub delta_time_limit: Option<Duration>,
/* private fields */
}
Fields§
§running: bool
§delta_time_limit: Option<Duration>
Implementations§
Source§impl AppLifeCycle
impl AppLifeCycle
pub fn new(timer: Box<dyn AppTimer>) -> Self
pub fn with_limit( timer: Box<dyn AppTimer>, delta_time_limit: Option<Duration>, ) -> Self
pub fn time(&self) -> Duration
pub fn time_seconds(&self) -> Scalar
pub fn delta_time(&self) -> Duration
pub fn delta_time_seconds(&self) -> Scalar
pub fn ticks(&self) -> usize
pub fn current_state_token(&self) -> StateToken
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppLifeCycle
impl !RefUnwindSafe for AppLifeCycle
impl Send for AppLifeCycle
impl Sync for AppLifeCycle
impl Unpin for AppLifeCycle
impl !UnwindSafe for AppLifeCycle
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