pub struct FrameVsync {
pub start: Duration,
pub target: Duration,
}Expand description
The times of the vsync a frame is drawn for, on the platform’s clock since the host’s origin:
FlutterEngineOnVsync’s frame_start_time_nanos and frame_target_time_nanos.
The framework’s frame time is target, as Flutter’s engine hands _beginFrame the target time
(Animator::BeginFrame), so animations step by the refresh, not by when a frame’s drawing
happened to start. A later editor must keep both on the clock of Frame::elapsed, so the
framework can set them against its timers.
Fields§
§start: DurationWhen the vsync occurred, or will: no later than the frame is handed over.
target: DurationWhen the host expects the next vsync, the one the frame’s picture is for: one refresh
after start, or start where the host knows no refresh period.
Trait Implementations§
Source§impl Clone for FrameVsync
impl Clone for FrameVsync
impl Copy for FrameVsync
Source§impl Debug for FrameVsync
impl Debug for FrameVsync
impl Eq for FrameVsync
Source§impl PartialEq for FrameVsync
impl PartialEq for FrameVsync
impl StructuralPartialEq for FrameVsync
Auto Trait Implementations§
impl Forget for FrameVsync
impl Freeze for FrameVsync
impl Move for FrameVsync
impl RefUnwindSafe for FrameVsync
impl Send for FrameVsync
impl Sync for FrameVsync
impl Unpin for FrameVsync
impl UnsafeUnpin for FrameVsync
impl UnwindSafe for FrameVsync
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.