pub struct ReplayEngine { /* private fields */ }Implementations§
Source§impl ReplayEngine
impl ReplayEngine
pub fn new() -> Self
pub fn with_loop(self, enabled: bool) -> Self
pub fn add_checkpoint(&mut self, checkpoint: Checkpoint)
pub fn load_from_manager( &mut self, manager: &mut CheckpointManager, ) -> Result<()>
pub fn current(&self) -> Option<&Checkpoint>
pub fn next(&mut self) -> Option<&Checkpoint>
pub fn previous(&mut self) -> Option<&Checkpoint>
pub fn seek(&mut self, index: usize) -> Result<&Checkpoint>
pub fn seek_to_start(&mut self) -> Option<&Checkpoint>
pub fn seek_to_end(&mut self) -> Option<&Checkpoint>
pub fn get_index(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_at_start(&self) -> bool
pub fn is_at_end(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplayEngine
impl RefUnwindSafe for ReplayEngine
impl Send for ReplayEngine
impl Sync for ReplayEngine
impl Unpin for ReplayEngine
impl UnwindSafe for ReplayEngine
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