pub struct EpochPolicyContext<'a> {
pub previous_view: &'a ViewState,
pub current_report: &'a MotionReport,
pub motion_state: CameraMotionState,
pub state_duration: Duration,
}Expand description
Context passed to EpochPolicy::decide.
Fields§
§previous_view: &'a ViewStateThe view state from the previous frame.
current_report: &'a MotionReportThe motion report for the current frame.
motion_state: CameraMotionStateThe computed motion state for the current frame.
state_duration: DurationHow long the camera has been in the current motion state.
Auto Trait Implementations§
impl<'a> Freeze for EpochPolicyContext<'a>
impl<'a> RefUnwindSafe for EpochPolicyContext<'a>
impl<'a> Send for EpochPolicyContext<'a>
impl<'a> Sync for EpochPolicyContext<'a>
impl<'a> Unpin for EpochPolicyContext<'a>
impl<'a> UnsafeUnpin for EpochPolicyContext<'a>
impl<'a> UnwindSafe for EpochPolicyContext<'a>
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