pub struct CaptureSpan {
pub start_ms: u64,
pub end_ms: u64,
}Expand description
When a captured frame’s pixels were sampled, as an interval.
A screenshot is not instantaneous — around 230ms on an M-series simulator — and nothing says which instant inside that the pixels come from. So a capture is an interval, and only a capture whose whole interval sits inside the press is during the press.
Fields§
§start_ms: u64Host clock when the capture was started.
end_ms: u64Host clock when the capture returned.
Trait Implementations§
Source§impl Clone for CaptureSpan
impl Clone for CaptureSpan
Source§fn clone(&self) -> CaptureSpan
fn clone(&self) -> CaptureSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CaptureSpan
Source§impl Debug for CaptureSpan
impl Debug for CaptureSpan
impl Eq for CaptureSpan
Source§impl PartialEq for CaptureSpan
impl PartialEq for CaptureSpan
impl StructuralPartialEq for CaptureSpan
Auto Trait Implementations§
impl Freeze for CaptureSpan
impl RefUnwindSafe for CaptureSpan
impl Send for CaptureSpan
impl Sync for CaptureSpan
impl Unpin for CaptureSpan
impl UnsafeUnpin for CaptureSpan
impl UnwindSafe for CaptureSpan
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