pub struct PlayerEngine { /* private fields */ }Implementations§
Source§impl PlayerEngine
impl PlayerEngine
pub fn new(config: PlayerConfig) -> Self
pub fn state(&self) -> &PlayerState
pub fn revision(&self) -> u64
pub fn view(&self) -> PlayerViewState
pub fn drain_commands(&mut self) -> Vec<HostCommand>
pub fn dispatch(&mut self, event: PlayerEvent) -> Result<(), PlayerError>
Trait Implementations§
Source§impl Clone for PlayerEngine
impl Clone for PlayerEngine
Source§fn clone(&self) -> PlayerEngine
fn clone(&self) -> PlayerEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerEngine
impl Debug for PlayerEngine
Auto Trait Implementations§
impl Freeze for PlayerEngine
impl RefUnwindSafe for PlayerEngine
impl Send for PlayerEngine
impl Sync for PlayerEngine
impl Unpin for PlayerEngine
impl UnsafeUnpin for PlayerEngine
impl UnwindSafe for PlayerEngine
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