#[non_exhaustive]pub enum FrameResult {
Preparing,
Skipped,
Empty,
Submitted,
Outstanding,
Discarded,
Presented,
}v4_24 only.Expand description
An enumeration describing the process of rendering a frame. Rendering a frame starts with the frame clock cycle and then follows the rendered frame (if there was one) through the display server until it appears on screen.
It is relevant in particular for FrameTimings which
may still be waiting for values to be filled in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Preparing
The frame is currently being prepared and rendered by GTK. This is the initial state.
Skipped
GTK has determined that nothing needs to be rendered because there are no visual changes. No rendering will be submitted to the display server and because of that no information will be forthcoming from the display server.
The frame is complete.
Empty
GTK has determined that nothing needs to be rendered because there are no visual changes. This information has been submitted to the display server. The presentation time has been updated to reflect when this frame would have been displayed.
The frame is complete.
Submitted
A frame has been drawn and submitted to the display server, but the display server will not provide any further feedback about when or how the frame is going to be displayed.
The frame is complete.
Outstanding
The frame has been drawn and submitted to the display server, but the display server has not yet replied what is going to happen with the rendered image.
Discarded
The frame has been drawn and submitted to the display server, but the display server has not displayed it. No presentation time will be available.
The frame is complete.
Presented
The frame has been drawn and submitted to the display server, and the display server has rendered it and displayed the result. The presentation time is accurately reflecting when that happened.
The frame is complete.
Trait Implementations§
Source§impl Clone for FrameResult
impl Clone for FrameResult
Source§fn clone(&self) -> FrameResult
fn clone(&self) -> FrameResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FrameResult
Source§impl Debug for FrameResult
impl Debug for FrameResult
impl Eq for FrameResult
Source§impl From<FrameResult> for Value
impl From<FrameResult> for Value
Source§fn from(v: FrameResult) -> Self
fn from(v: FrameResult) -> Self
Source§impl<'a> FromValue<'a> for FrameResult
impl<'a> FromValue<'a> for FrameResult
Source§type Checker = GenericValueTypeChecker<FrameResult>
type Checker = GenericValueTypeChecker<FrameResult>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for FrameResult
impl HasParamSpec for FrameResult
type ParamSpec = ParamSpecEnum
Source§type SetValue = FrameResult
type SetValue = FrameResult
type BuilderFn = fn(&str, FrameResult) -> ParamSpecEnumBuilder<'_, FrameResult>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for FrameResult
impl Hash for FrameResult
Source§impl Ord for FrameResult
impl Ord for FrameResult
Source§fn cmp(&self, other: &FrameResult) -> Ordering
fn cmp(&self, other: &FrameResult) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FrameResult
impl PartialEq for FrameResult
Source§impl PartialOrd for FrameResult
impl PartialOrd for FrameResult
Source§impl StaticType for FrameResult
impl StaticType for FrameResult
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for FrameResult
Source§impl ToValue for FrameResult
impl ToValue for FrameResult
Source§impl ValueType for FrameResult
impl ValueType for FrameResult
Source§type Type = FrameResult
type Type = FrameResult
Type from. Read moreAuto Trait Implementations§
impl Freeze for FrameResult
impl RefUnwindSafe for FrameResult
impl Send for FrameResult
impl Sync for FrameResult
impl Unpin for FrameResult
impl UnsafeUnpin for FrameResult
impl UnwindSafe for FrameResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.