Player
struct · ferroui-designer-animation · v0.5.0
struct Player
Clock-free playback controller. The host supplies measured elapsed time, making seeks and tests independent of frame rate. No timer/thread is created by this crate.
Members
new
fn new() -> Self
time
fn time(self: &Self) -> f64
is_playing
fn is_playing(self: &Self) -> bool
play
fn play(self: &mut Self)
pause
fn pause(self: &mut Self)
stop
fn stop(self: &mut Self)
seek
fn seek(self: &mut Self, time: f64) -> Result<()>
advance_with_visibility
fn advance_with_visibility(self: &mut Self, delta: f64, timeline: &Timeline, visible: bool, manually_started: bool) -> Result<Vec<Sample>>
Advance without charging hidden time to policies that pause when invisible. This preserves the elapsed position and resumes without a catch-up jump.
advance
fn advance(self: &mut Self, delta: f64, timeline: &Timeline) -> Result<Vec<Sample>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.