pub struct MotionFrameHostUpdate { /* private fields */ }Expand description
Adapter decision produced after a frame host observes motion demand.
Implementations§
Source§impl MotionFrameHostUpdate
impl MotionFrameHostUpdate
Sourcepub const fn frame_demand(self) -> MotionFrameDemand
pub const fn frame_demand(self) -> MotionFrameDemand
Returns the frame demand that produced this update.
Sourcepub const fn should_request_frame(self) -> bool
pub const fn should_request_frame(self) -> bool
Returns whether the adapter should request another frame.
Sourcepub const fn requested_frames(self) -> u64
pub const fn requested_frames(self) -> u64
Returns the host’s cumulative requested-frame count after this update.
Trait Implementations§
Source§impl Clone for MotionFrameHostUpdate
impl Clone for MotionFrameHostUpdate
impl Copy for MotionFrameHostUpdate
Source§impl Debug for MotionFrameHostUpdate
impl Debug for MotionFrameHostUpdate
impl Eq for MotionFrameHostUpdate
Source§impl PartialEq for MotionFrameHostUpdate
impl PartialEq for MotionFrameHostUpdate
impl StructuralPartialEq for MotionFrameHostUpdate
Auto Trait Implementations§
impl Freeze for MotionFrameHostUpdate
impl RefUnwindSafe for MotionFrameHostUpdate
impl Send for MotionFrameHostUpdate
impl Sync for MotionFrameHostUpdate
impl Unpin for MotionFrameHostUpdate
impl UnsafeUnpin for MotionFrameHostUpdate
impl UnwindSafe for MotionFrameHostUpdate
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