pub struct FrameSchedule {
pub needs_update: bool,
pub needs_frame: bool,
pub next_deadline: Option<Instant>,
}Expand description
What the shell needs from the platform loop next: an update now, a display frame, or a wake at a later time.
Fields§
§needs_update: boolWhether queued UI tasks, state changes, layout or semantics work can run now, without waiting for a display frame.
needs_frame: boolWhether the shell wants a display frame because something on screen changed or is animating.
next_deadline: Option<Instant>When the next timed event, such as a cursor blink, is due. None when no timed event is
waiting.
Implementations§
Source§impl FrameSchedule
impl FrameSchedule
Sourcepub fn apply_to<D>(self, driver: &D)where
D: PlatformFrameDriver + ?Sized,
pub fn apply_to<D>(self, driver: &D)where
D: PlatformFrameDriver + ?Sized,
Asks driver for what this schedule calls for: a frame, an immediate wake, a wake at the
deadline, or no wake.
Trait Implementations§
Source§impl Clone for FrameSchedule
impl Clone for FrameSchedule
impl Copy for FrameSchedule
Source§impl Debug for FrameSchedule
impl Debug for FrameSchedule
Source§impl PartialEq for FrameSchedule
impl PartialEq for FrameSchedule
impl StructuralPartialEq for FrameSchedule
Auto Trait Implementations§
impl Freeze for FrameSchedule
impl RefUnwindSafe for FrameSchedule
impl Send for FrameSchedule
impl Sync for FrameSchedule
impl Unpin for FrameSchedule
impl UnsafeUnpin for FrameSchedule
impl UnwindSafe for FrameSchedule
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