pub struct FrameScheduler { /* private fields */ }Expand description
Stores the latest FrameSchedule of a surface so that platform code on other threads can read
it.
Implementations§
Source§impl FrameScheduler
impl FrameScheduler
Sourcepub fn record(&self, schedule: FrameSchedule)
pub fn record(&self, schedule: FrameSchedule)
Stores schedule as the latest one. A schedule that needs an update drops its deadline.
Sourcepub fn schedule<D>(&self, schedule: FrameSchedule, driver: &D)where
D: PlatformFrameDriver + ?Sized,
pub fn schedule<D>(&self, schedule: FrameSchedule, driver: &D)where
D: PlatformFrameDriver + ?Sized,
Stores schedule and asks driver for the frame or wake it calls for.
Sourcepub fn snapshot(&self) -> FrameSchedule
pub fn snapshot(&self) -> FrameSchedule
Returns the latest stored schedule.
Trait Implementations§
Source§impl Debug for FrameScheduler
impl Debug for FrameScheduler
Auto Trait Implementations§
impl !Freeze for FrameScheduler
impl RefUnwindSafe for FrameScheduler
impl Send for FrameScheduler
impl Sync for FrameScheduler
impl Unpin for FrameScheduler
impl UnsafeUnpin for FrameScheduler
impl UnwindSafe for FrameScheduler
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