Struct raf::AnimationFrameScheduler[][src]

pub struct AnimationFrameScheduler<Cb>(_);
Expand description

Owns a WebRuntime and schedules its execution using requestAnimationFrame.

Implementations

Construct a new scheduler with the provided callback. ticker.tick() will be called once per fulfilled animation frame request.

Consumes the scheduler to initiate a requestAnimationFrame callback loop where new animation frames are requested immmediately after the last moxie::Revision is completed. WebRuntime::run_once is called once per requested animation frame.

Consumes the scheduler to initiate a requestAnimationFrame callback loop where new animation frames are requested whenever the waker passed to the provided closure is woken.

Trait Implementations

Indicates that the associated task is ready to make progress and should be polled. Read more

Indicates that the associated task is ready to make progress and should be polled. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.