pub struct Frame {
pub elapsed: Duration,
pub vsync: Option<FrameVsync>,
}Expand description
A refresh of a screen, as the host delivers it: Flutter’s FlutterEngineOnVsync, with the
platform’s clock beside the vsync’s.
Fields§
§elapsed: DurationThe platform’s clock as the host hands the frame over, since the host’s origin: what the app’s timers run to.
vsync: Option<FrameVsync>The vsync the frame is drawn for, on the same clock as elapsed; None for a frame drawn
outside the display’s refresh, as one a resize draws before it returns, whose time is
elapsed.
Trait Implementations§
impl Copy for Frame
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.