Skip to main content

VsyncObserver

Trait VsyncObserver 

Source
pub trait VsyncObserver: Send + Sync {
    // Required method
    fn vsync(&self, at: Instant);
}
Expand description

What a VsyncWaiter calls at the refresh it was asked for.

Required Methods§

Source

fn vsync(&self, at: Instant)

at is the host’s clock when the refresh was served.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§