pub struct MotionFrameHostSample<T> { /* private fields */ }Expand description
Value sampled through a frame host plus the host’s adapter decision.
Implementations§
Source§impl<T> MotionFrameHostSample<T>
impl<T> MotionFrameHostSample<T>
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Consumes the sample and returns the sampled value.
Sourcepub const fn clock(&self) -> MotionClockSample
pub const fn clock(&self) -> MotionClockSample
Returns the clamped clock used for sampling.
Sourcepub const fn update(&self) -> MotionFrameHostUpdate
pub const fn update(&self) -> MotionFrameHostUpdate
Returns the host update produced after sampling.
Sourcepub const fn frame_demand(&self) -> MotionFrameDemand
pub const fn frame_demand(&self) -> MotionFrameDemand
Returns the frame demand that produced this sample.
Sourcepub const fn should_request_frame(&self) -> bool
pub const fn should_request_frame(&self) -> bool
Returns whether the adapter should request another frame.
Trait Implementations§
Source§impl<T: Clone> Clone for MotionFrameHostSample<T>
impl<T: Clone> Clone for MotionFrameHostSample<T>
impl<T: Copy> Copy for MotionFrameHostSample<T>
Source§impl<T: Debug> Debug for MotionFrameHostSample<T>
impl<T: Debug> Debug for MotionFrameHostSample<T>
Source§impl<T: PartialEq> PartialEq for MotionFrameHostSample<T>
impl<T: PartialEq> PartialEq for MotionFrameHostSample<T>
impl<T: PartialEq> StructuralPartialEq for MotionFrameHostSample<T>
Auto Trait Implementations§
impl<T> Freeze for MotionFrameHostSample<T>where
T: Freeze,
impl<T> RefUnwindSafe for MotionFrameHostSample<T>where
T: RefUnwindSafe,
impl<T> Send for MotionFrameHostSample<T>where
T: Send,
impl<T> Sync for MotionFrameHostSample<T>where
T: Sync,
impl<T> Unpin for MotionFrameHostSample<T>where
T: Unpin,
impl<T> UnsafeUnpin for MotionFrameHostSample<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MotionFrameHostSample<T>where
T: UnwindSafe,
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