pub struct PressResult {
pub latest_down_offset_ms: u64,
pub earliest_up_offset_ms: u64,
pub handler_wall_ms: u64,
}Expand description
POST /long-press response body.
Bounds, not instants. press(forDuration:) does not report when the
touch went down, so the runner reports what it can measure — the
call’s own span — reduced to the two bounds that hold whatever went
on inside it. A reader who takes latest_down_offset_ms for “when
it went down” will place frames inside a press they were not inside.
All fields default to zero, which reads as “no window can be established” rather than as a press at time zero.
Fields§
§latest_down_offset_ms: u64Handler entry → the latest instant the touch could have gone down.
earliest_up_offset_ms: u64Handler entry → the earliest instant the touch could have lifted.
handler_wall_ms: u64Handler entry → handler return.
Trait Implementations§
Source§impl Clone for PressResult
impl Clone for PressResult
Source§fn clone(&self) -> PressResult
fn clone(&self) -> PressResult
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 moreSource§impl Debug for PressResult
impl Debug for PressResult
Source§impl Default for PressResult
impl Default for PressResult
Source§fn default() -> PressResult
fn default() -> PressResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PressResult
impl<'de> Deserialize<'de> for PressResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PressResult
Source§impl PartialEq for PressResult
impl PartialEq for PressResult
Source§impl Serialize for PressResult
impl Serialize for PressResult
impl StructuralPartialEq for PressResult
Auto Trait Implementations§
impl Freeze for PressResult
impl RefUnwindSafe for PressResult
impl Send for PressResult
impl Sync for PressResult
impl Unpin for PressResult
impl UnsafeUnpin for PressResult
impl UnwindSafe for PressResult
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