devotee_backend

Trait Context

source
pub trait Context<'a, Input> {
    // Required methods
    fn input(&self) -> &Input;
    fn delta(&self) -> Duration;
    fn shutdown(&mut self);
}
Expand description

Context to be passed to the Application during the update routine.

Required Methods§

source

fn input(&self) -> &Input

Get stored input system.

source

fn delta(&self) -> Duration

Get simulated time passed since the previous update.

source

fn shutdown(&mut self)

Tell the backend to shutdown.

Implementors§