pub struct Application<T: Game<K, I>, K, I> {
pub is_running: bool,
pub shared_state: Arc<Mutex<K>>,
/* private fields */
}Expand description
Application that runs the app. App will handle all engine features. Missing:
- Renderer
- Window abstraction
- Event handler
- Many, many more features…
§Type definitions
- T: Game type
- K: Shared state between client
- I: Input for handling client
- M: Message for sharing between app and server controller
Fields§
§is_running: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, K, I> Freeze for Application<T, K, I>where
T: Freeze,
impl<T, K, I> RefUnwindSafe for Application<T, K, I>where
T: RefUnwindSafe,
impl<T, K, I> Send for Application<T, K, I>
impl<T, K, I> Sync for Application<T, K, I>
impl<T, K, I> Unpin for Application<T, K, I>where
T: Unpin,
impl<T, K, I> UnwindSafe for Application<T, K, I>where
T: UnwindSafe,
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