pub struct EngineControl { /* private fields */ }Implementations§
Source§impl EngineControl
impl EngineControl
pub fn new() -> Self
pub fn stop(&self)
pub fn is_stopped(&self) -> bool
pub fn stop_flag(&self) -> Arc<AtomicBool>
pub fn set_paused(&self, paused: bool)
Sourcepub fn toggle_pause(&self) -> bool
pub fn toggle_pause(&self) -> bool
Toggle pause. Returns new paused state.
pub fn step_once(&self)
Sourcepub fn wait_before_step(&self)
pub fn wait_before_step(&self)
Called by engine thread before computing next epoch.
pub fn is_paused(&self) -> bool
Trait Implementations§
Source§impl Clone for EngineControl
impl Clone for EngineControl
Source§fn clone(&self) -> EngineControl
fn clone(&self) -> EngineControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EngineControl
impl RefUnwindSafe for EngineControl
impl Send for EngineControl
impl Sync for EngineControl
impl Unpin for EngineControl
impl UnsafeUnpin for EngineControl
impl UnwindSafe for EngineControl
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