pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn render(&mut self, app: &mut App) -> Result<(), RenderError>
pub fn tick_event(&mut self) -> Result<(), EventError>
pub fn consume_meta_events( &mut self, app: &mut App, assets: &'static Assets, ) -> Result<(), MetaEventError>
pub fn move_around( &mut self, direction: Direction, ) -> Result<(), MoveAroundError>
pub fn quick_step(&mut self, direction: Direction) -> Result<(), QuickStepError>
pub fn game(&self) -> &Game
pub fn game_mut(&mut self) -> &mut Game
pub fn dev_command_context<'a>(&'a mut self) -> CommandContext<'a, 'a>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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