pub enum MotionFrameDemand {
Idle,
NeedsFrame(MotionFrameReason),
}Expand description
Renderer-neutral frame demand returned by motion controllers.
Variants§
Idle
No more animation frames are required.
NeedsFrame(MotionFrameReason)
At least one track is active and the adapter should request another frame for the reason.
Implementations§
Source§impl MotionFrameDemand
impl MotionFrameDemand
Sourcepub const fn needs_frame(self) -> bool
pub const fn needs_frame(self) -> bool
Returns whether another frame should be requested by the adapter.
Sourcepub const fn reason(self) -> Option<MotionFrameReason>
pub const fn reason(self) -> Option<MotionFrameReason>
Returns the reason another frame is needed.
Sourcepub const fn combine(self, other: Self) -> Self
pub const fn combine(self, other: Self) -> Self
Combines two frame demands into one adapter-owned frame request.
Sourcepub fn combine_all(demands: impl IntoIterator<Item = Self>) -> Self
pub fn combine_all(demands: impl IntoIterator<Item = Self>) -> Self
Combines many frame demands into one adapter-owned frame request.
Trait Implementations§
Source§impl Clone for MotionFrameDemand
impl Clone for MotionFrameDemand
impl Copy for MotionFrameDemand
Source§impl Debug for MotionFrameDemand
impl Debug for MotionFrameDemand
impl Eq for MotionFrameDemand
Source§impl PartialEq for MotionFrameDemand
impl PartialEq for MotionFrameDemand
impl StructuralPartialEq for MotionFrameDemand
Auto Trait Implementations§
impl Freeze for MotionFrameDemand
impl RefUnwindSafe for MotionFrameDemand
impl Send for MotionFrameDemand
impl Sync for MotionFrameDemand
impl Unpin for MotionFrameDemand
impl UnsafeUnpin for MotionFrameDemand
impl UnwindSafe for MotionFrameDemand
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