Skip to main content

PlatformFrameDriver

Trait PlatformFrameDriver 

Source
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§

Source

fn request_frame(&self)

Asks the platform to deliver a display frame.

Source

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.

Source

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".

Implementors§