pub struct FrameSchedule {
pub needs_update: bool,
pub needs_frame: bool,
pub next_deadline: Option<Instant>,
}Fields§
§needs_update: bool§needs_frame: bool§next_deadline: Option<Instant>Implementations§
Source§impl FrameSchedule
impl FrameSchedule
pub fn apply_to<D>(self, driver: &D)where
D: PlatformFrameDriver + ?Sized,
Trait Implementations§
Source§impl Clone for FrameSchedule
impl Clone for FrameSchedule
Source§fn clone(&self) -> FrameSchedule
fn clone(&self) -> FrameSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameSchedule
Source§impl Debug for FrameSchedule
impl Debug for FrameSchedule
Source§impl PartialEq for FrameSchedule
impl PartialEq for FrameSchedule
Source§fn eq(&self, other: &FrameSchedule) -> bool
fn eq(&self, other: &FrameSchedule) -> bool
Tests for
self and other values to be equal, and is used by ==.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