Struct below_store::advance::Advance
source · pub struct Advance<FrameType, MType> { /* private fields */ }
Expand description
The Advance data structure will be used as an operational bridge between controller and store.
Implementations§
source§impl<FrameType, ModelType> Advance<FrameType, ModelType>
impl<FrameType, ModelType> Advance<FrameType, ModelType>
sourcepub fn initialize(&mut self)
pub fn initialize(&mut self)
Initialize the current advance module.
sourcepub fn advance(&mut self, direction: Direction) -> Option<ModelType>
pub fn advance(&mut self, direction: Direction) -> Option<ModelType>
Generate the next Model base on the moving direction.
sourcepub fn jump_sample_to(&mut self, timestamp: SystemTime) -> Option<ModelType>
pub fn jump_sample_to(&mut self, timestamp: SystemTime) -> Option<ModelType>
jump to the sample at timestamp.
sourcepub fn get_latest_sample(&mut self) -> Option<ModelType>
pub fn get_latest_sample(&mut self) -> Option<ModelType>
Syntactic sugar for getting lastest sample
sourcepub fn jump_sample_forward(&mut self, duration: Duration) -> Option<ModelType>
pub fn jump_sample_forward(&mut self, duration: Duration) -> Option<ModelType>
Syntactic sugar for jump sample forward
sourcepub fn jump_sample_backward(&mut self, duration: Duration) -> Option<ModelType>
pub fn jump_sample_backward(&mut self, duration: Duration) -> Option<ModelType>
Syntactic sugar for jump sample backward
pub fn get_next_ts(&self) -> SystemTime
Auto Trait Implementations§
impl<FrameType, MType> Freeze for Advance<FrameType, MType>where
FrameType: Freeze,
impl<FrameType, MType> !RefUnwindSafe for Advance<FrameType, MType>
impl<FrameType, MType> !Send for Advance<FrameType, MType>
impl<FrameType, MType> !Sync for Advance<FrameType, MType>
impl<FrameType, MType> Unpin for Advance<FrameType, MType>where
FrameType: Unpin,
impl<FrameType, MType> !UnwindSafe for Advance<FrameType, MType>
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