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§
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 !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