logo
pub struct FrameInfo { /* private fields */ }

Implementations

Gets the frame counter for the Onscreen that corresponds to this frame.

Returns

The frame counter value

Gets the Output that the swapped frame was presented to.

Returns

The Output that the frame was presented to, or None if this could not be determined.

Gets the presentation time for the frame. This is the time at which the frame became visible to the user.

The presentation time measured in nanoseconds is based on a monotonic time source. The time source is not necessarily correlated with system/wall clock time and may represent the time elapsed since some undefined system event such as when the system last booted.

Linux kernel version less that 3.8 can result in non-monotonic timestamps being reported when using a drm based OpenGL driver. Also some buggy Mesa drivers up to 9.0.1 may also incorrectly report non-monotonic timestamps.

Returns

the presentation time for the frame

Gets the refresh rate in Hertz for the output that the frame was on at the time the frame was presented.

Some platforms can’t associate a Output with a FrameInfo object but are able to report a refresh rate via this api. Therefore if you need this information then this api is more reliable than using FrameInfo::get_output followed by Output::get_refresh_rate.

Returns

the refresh rate in Hertz

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.