pub struct RailPlayer3<'a> { /* private fields */ }Expand description
Optional retained display/hold/discontinuity adapter over a fixed rail. No clock, accumulator or simulation ownership. See executable module recipe.
Implementations§
Source§impl<'a> RailPlayer3<'a>
impl<'a> RailPlayer3<'a>
Sourcepub fn new(rail: Rail3<'a>) -> RailPlayer3<'a>
pub fn new(rail: Rail3<'a>) -> RailPlayer3<'a>
Empty player, generation zero; the first successful sample is a cut.
Sourcepub fn displayed(&self) -> Option<RailSample3>
pub fn displayed(&self) -> Option<RailSample3>
Last displayed observation, including its original outcome flags.
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Local wrapping discontinuity counter; not a tick ID or global identity.
Sourcepub fn resume(&mut self) -> bool
pub fn resume(&mut self) -> bool
Release hold; host must resume from its frozen/rebased playhead.
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Forget display/time, release hold, increment generation. See module recipe.
Sourcepub fn sample_at(
&mut self,
seconds: f64,
reduced_motion: bool,
) -> Result<RailSample3, RailError>
pub fn sample_at( &mut self, seconds: f64, reduced_motion: bool, ) -> Result<RailSample3, RailError>
Atomic supplied-time query. Hold discards valid supplied time; reduced motion overrides hold and cuts to final. Invalid time still errors while held. Backward seeks and crossed cuts/loops discard renderer history. Repeated identical time/policy does not increment generation again. Resuming after reduced motion cuts, preventing stale interpolation. See module recipe.
Trait Implementations§
Source§impl<'a> Clone for RailPlayer3<'a>
impl<'a> Clone for RailPlayer3<'a>
Source§fn clone(&self) -> RailPlayer3<'a>
fn clone(&self) -> RailPlayer3<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more