pub struct PaintTimingInfo {
pub rendering_update_end_time: CrossProcessInstant,
pub implementation_defined_presentation_time: Option<CrossProcessInstant>,
}Expand description
Fields§
§rendering_update_end_time: CrossProcessInstant§implementation_defined_presentation_time: Option<CrossProcessInstant>Implementations§
Source§impl PaintTimingInfo
impl PaintTimingInfo
pub fn now() -> Self
Sourcepub fn with_presentation_time(
self,
presentation_time: CrossProcessInstant,
) -> Self
pub fn with_presentation_time( self, presentation_time: CrossProcessInstant, ) -> Self
Return a copy of this PaintTimingInfo with its implementation-defined
presentation time set to presentation_time.
Sourcepub fn paint_time(&self) -> CrossProcessInstant
pub fn paint_time(&self) -> CrossProcessInstant
Sourcepub fn presentation_time(&self) -> Option<CrossProcessInstant>
pub fn presentation_time(&self) -> Option<CrossProcessInstant>
Trait Implementations§
Source§impl Clone for PaintTimingInfo
impl Clone for PaintTimingInfo
Source§fn clone(&self) -> PaintTimingInfo
fn clone(&self) -> PaintTimingInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaintTimingInfo
impl Debug for PaintTimingInfo
Source§impl<'de> Deserialize<'de> for PaintTimingInfo
impl<'de> Deserialize<'de> for PaintTimingInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MallocSizeOf for PaintTimingInfo
impl MallocSizeOf for PaintTimingInfo
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl PartialEq for PaintTimingInfo
impl PartialEq for PaintTimingInfo
Source§fn eq(&self, other: &PaintTimingInfo) -> bool
fn eq(&self, other: &PaintTimingInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaintTimingInfo
impl Serialize for PaintTimingInfo
impl Copy for PaintTimingInfo
impl StructuralPartialEq for PaintTimingInfo
Auto Trait Implementations§
impl Freeze for PaintTimingInfo
impl RefUnwindSafe for PaintTimingInfo
impl Send for PaintTimingInfo
impl Sync for PaintTimingInfo
impl Unpin for PaintTimingInfo
impl UnsafeUnpin for PaintTimingInfo
impl UnwindSafe for PaintTimingInfo
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert