Struct alacritty::display::FrameTimer
source · pub struct FrameTimer {
base: Instant,
last_synced_timestamp: Instant,
refresh_interval: Duration,
}
Expand description
The frame timer state.
Fields§
§base: Instant
Base timestamp used to compute sync points.
last_synced_timestamp: Instant
The last timestamp we synced to.
refresh_interval: Duration
The refresh rate we’ve used to compute sync timestamps.
Implementations§
source§impl FrameTimer
impl FrameTimer
Auto Trait Implementations§
impl RefUnwindSafe for FrameTimer
impl Send for FrameTimer
impl Sync for FrameTimer
impl Unpin for FrameTimer
impl UnwindSafe for FrameTimer
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