Struct gdk::FrameTimings
source · [−]pub struct FrameTimings(_);Implementations
sourceimpl FrameTimings
impl FrameTimings
pub fn get_complete(&self) -> bool
pub fn get_frame_counter(&self) -> i64
pub fn get_frame_time(&self) -> i64
sourceimpl FrameTimings
impl FrameTimings
pub fn get_predicted_presentation_time(&self) -> Option<NonZeroU64>
pub fn get_presentation_time(&self) -> Option<NonZeroU64>
pub fn get_refresh_interval(&self) -> Option<NonZeroU64>
Trait Implementations
sourceimpl Clone for FrameTimings
impl Clone for FrameTimings
sourcefn clone(&self) -> FrameTimings
fn clone(&self) -> FrameTimings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FrameTimings
impl Debug for FrameTimings
sourceimpl Hash for FrameTimings
impl Hash for FrameTimings
sourceimpl Ord for FrameTimings
impl Ord for FrameTimings
sourcefn cmp(&self, other: &FrameTimings) -> Ordering
fn cmp(&self, other: &FrameTimings) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FrameTimings> for FrameTimings
impl PartialEq<FrameTimings> for FrameTimings
sourcefn eq(&self, other: &FrameTimings) -> bool
fn eq(&self, other: &FrameTimings) -> bool
sourceimpl PartialOrd<FrameTimings> for FrameTimings
impl PartialOrd<FrameTimings> for FrameTimings
sourcefn partial_cmp(&self, other: &FrameTimings) -> Option<Ordering>
fn partial_cmp(&self, other: &FrameTimings) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for FrameTimings
impl StaticType for FrameTimings
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for FrameTimings
impl StructuralEq for FrameTimings
impl StructuralPartialEq for FrameTimings
Auto Trait Implementations
impl RefUnwindSafe for FrameTimings
impl !Send for FrameTimings
impl !Sync for FrameTimings
impl Unpin for FrameTimings
impl UnwindSafe for FrameTimings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more