pub struct MotionExecutionPlan { /* private fields */ }Expand description
Renderer-neutral policy result used to start motion from a single owner.
Implementations§
Source§impl MotionExecutionPlan
impl MotionExecutionPlan
Sourcepub fn resolve(input: MotionPolicyInput) -> Self
pub fn resolve(input: MotionPolicyInput) -> Self
Resolves a requested model through motion policy, falling back to immediate motion on policy failure.
Sourcepub const fn model(&self) -> MotionModel
pub const fn model(&self) -> MotionModel
Returns the model that should execute after policy resolution.
Sourcepub const fn policy_report(&self) -> &MotionPolicyReport
pub const fn policy_report(&self) -> &MotionPolicyReport
Returns the policy report produced for the requested model.
Sourcepub const fn state(&self) -> MotionExecutionState
pub const fn state(&self) -> MotionExecutionState
Returns the policy-resolved execution state.
Sourcepub const fn is_immediate(&self) -> bool
pub const fn is_immediate(&self) -> bool
Returns whether the run should complete immediately.
Sourcepub fn into_parts(
self,
) -> (MotionModel, MotionPolicyReport, MotionExecutionState)
pub fn into_parts( self, ) -> (MotionModel, MotionPolicyReport, MotionExecutionState)
Consumes the plan and returns its parts.
Trait Implementations§
Source§impl Clone for MotionExecutionPlan
impl Clone for MotionExecutionPlan
Source§impl Debug for MotionExecutionPlan
impl Debug for MotionExecutionPlan
Source§impl PartialEq for MotionExecutionPlan
impl PartialEq for MotionExecutionPlan
impl StructuralPartialEq for MotionExecutionPlan
Auto Trait Implementations§
impl Freeze for MotionExecutionPlan
impl RefUnwindSafe for MotionExecutionPlan
impl Send for MotionExecutionPlan
impl Sync for MotionExecutionPlan
impl Unpin for MotionExecutionPlan
impl UnsafeUnpin for MotionExecutionPlan
impl UnwindSafe for MotionExecutionPlan
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