pub struct ActOutcome {
pub target: Option<HitElement>,
pub observed: Vec<HitElement>,
pub verdict: ActVerdict,
}Expand description
What an act did, as opposed to what it attempted.
The act surface returned Result<(), ExpectationFailure> — success
was the absence of an error — so nothing could report where a touch
actually went. POST /tap had carried a rich result all along and
the driver discarded it at three call sites; the default path never
asked at all.
observed travels even when verdict is Confirmed, because the
verdict cannot see occlusion and the chain can: a caller looking at
a scrim next to their button knows something the verdict does not.
Fields§
§target: Option<HitElement>The element the selector resolved to, when it resolved to one.
observed: Vec<HitElement>Named elements containing the point, innermost first.
verdict: ActVerdictWhether the act landed where it aimed.
Implementations§
Source§impl ActOutcome
impl ActOutcome
Trait Implementations§
Source§impl Clone for ActOutcome
impl Clone for ActOutcome
Source§fn clone(&self) -> ActOutcome
fn clone(&self) -> ActOutcome
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 ActOutcome
impl Debug for ActOutcome
Source§impl PartialEq for ActOutcome
impl PartialEq for ActOutcome
impl StructuralPartialEq for ActOutcome
Auto Trait Implementations§
impl Freeze for ActOutcome
impl RefUnwindSafe for ActOutcome
impl Send for ActOutcome
impl Sync for ActOutcome
impl Unpin for ActOutcome
impl UnsafeUnpin for ActOutcome
impl UnwindSafe for ActOutcome
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