pub struct Timeline<T> { /* private fields */ }Implementations§
Source§impl<T> Timeline<T>
impl<T> Timeline<T>
pub fn new(keyframes: Keyframes<T>, timing: Timing) -> Result<Self, TimingError>
pub const fn state(&self) -> PlaybackState
pub const fn timing(&self) -> Timing
pub fn needs_frame(&self) -> bool
pub fn play(&mut self, now: Time)
pub fn pause(&mut self, now: Time)
pub fn resume(&mut self, now: Time)
pub fn restart(&mut self, now: Time)
pub fn seek(&mut self, position: Duration, now: Time)
pub fn set_playback_rate( &mut self, playback_rate: f64, now: Time, ) -> Result<(), TimingError>
pub fn reverse(&mut self, now: Time)
pub fn finish(&mut self)
pub fn cancel(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Timeline<T>
impl<T> !UnwindSafe for Timeline<T>
impl<T> Freeze for Timeline<T>
impl<T> Send for Timeline<T>
impl<T> Sync for Timeline<T>
impl<T> Unpin for Timeline<T>
impl<T> UnsafeUnpin for Timeline<T>where
Keyframes<T>: UnsafeUnpin,
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