pub trait PlatformFrameDriver {
// Required methods
fn request_frame(&self);
fn request_wake_at(&self, deadline: Instant);
fn clear_wake(&self);
}Expand description
The platform’s way of waking its loop, used by FrameScheduler to carry out a
FrameSchedule.
Required Methods§
Sourcefn request_frame(&self)
fn request_frame(&self)
Asks the platform to deliver a display frame.
Sourcefn request_wake_at(&self, deadline: Instant)
fn request_wake_at(&self, deadline: Instant)
Asks the platform to wake its loop at deadline. A deadline of the current time means wake
as soon as possible.
Sourcefn clear_wake(&self)
fn clear_wake(&self)
Cancels the wake requested by request_wake_at.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".