pub struct MotionPollContext<'a> {
pub ts: MonotonicTs,
pub frame: &'a FrameEnvelope,
pub previous_view: &'a ViewState,
}Expand description
Context given to ViewStateProvider::poll.
Fields§
§ts: MonotonicTsMonotonic timestamp of the current frame.
frame: &'a FrameEnvelopeThe current video frame (available for egomotion providers that need pixel data for optical flow or feature matching).
previous_view: &'a ViewStateThe previous frame’s view state.
Auto Trait Implementations§
impl<'a> Freeze for MotionPollContext<'a>
impl<'a> !RefUnwindSafe for MotionPollContext<'a>
impl<'a> Send for MotionPollContext<'a>
impl<'a> Sync for MotionPollContext<'a>
impl<'a> Unpin for MotionPollContext<'a>
impl<'a> UnsafeUnpin for MotionPollContext<'a>
impl<'a> !UnwindSafe for MotionPollContext<'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