Struct oxygengine_core::app::AppLifeCycle
source · [−]pub struct AppLifeCycle {
pub running: bool,
pub delta_time_limit: Option<Duration>,
/* private fields */
}
Fields
running: bool
delta_time_limit: Option<Duration>
Implementations
sourceimpl 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
sourceimpl<AT> From<(AT, Duration)> for AppLifeCyclewhere
AT: AppTimer + 'static,
impl<AT> From<(AT, Duration)> for AppLifeCyclewhere
AT: AppTimer + 'static,
Auto Trait Implementations
impl !RefUnwindSafe for AppLifeCycle
impl Send for AppLifeCycle
impl Sync for AppLifeCycle
impl Unpin for AppLifeCycle
impl !UnwindSafe for AppLifeCycle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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