pub struct PresentationTiming {
    pub present_id: u32,
    pub desired_present_time: u64,
    pub actual_present_time: u64,
    pub earliest_present_time: u64,
    pub present_margin: u64,
}
Expand description

Fields§

§present_id: u32

An application-provided value that was given to a previous [Queue::present_with_timing]

It can be used to uniquely identify a previous present with the [Queue::present_with_timing].

§desired_present_time: u64

An application-provided value that was given to a previous [Queue::present_with_timing]. If non-zero, it was used by the application to indicate that an image not be presented any sooner than [desired_present_time].

§actual_present_time: u64

The time when the image of the surface was actually displayed.

§earliest_present_time: u64

The time when the image of the surface could have been displayed. This may differ from [actual_present_time] if the application requested that the image be presented no sooner than [desired_present_time]

§present_margin: u64

An indication of how early the [Queue::present_with_timing] was processed compared to how soon it needed to be processed, and still be presented at [earliest_present_time].

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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
Checks if this value is equivalent to the given key. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.