pub struct PreflightOutcome {
pub action: PreflightAction,
pub unique: bool,
pub element: Option<ResolvedElement>,
pub actionable: Option<bool>,
pub actionability_reason: Option<TargetActionabilityReason>,
pub candidates: Vec<CandidateSummary>,
pub error_kind: Option<TargetErrorKind>,
pub revision: u64,
pub geometry: Option<PreflightGeometry>,
pub hints: PreflightHints,
pub target_id: Option<String>,
pub frame_id: Option<String>,
}Expand description
Outcome of a side-effect-free preflight target resolution and actionability check.
Fields§
§action: PreflightActionAction for which the target was preflighted.
unique: boolWhether the target resolved uniquely.
element: Option<ResolvedElement>The resolved element (only present when unique).
actionable: Option<bool>Whether the target is actionable (only meaningful when unique).
actionability_reason: Option<TargetActionabilityReason>Reason the target is not actionable.
candidates: Vec<CandidateSummary>Ambiguous candidates (only when resolution is ambiguous).
error_kind: Option<TargetErrorKind>Error kind when resolution fails.
revision: u64Current page revision.
geometry: Option<PreflightGeometry>Frame-local CSS geometry observed by the read-only probe.
hints: PreflightHintsAdvisory action hints; they never override actionable.
target_id: Option<String>§frame_id: Option<String>Trait Implementations§
Source§impl Clone for PreflightOutcome
impl Clone for PreflightOutcome
Source§fn clone(&self) -> PreflightOutcome
fn clone(&self) -> PreflightOutcome
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 PreflightOutcome
impl Debug for PreflightOutcome
Auto Trait Implementations§
impl Freeze for PreflightOutcome
impl RefUnwindSafe for PreflightOutcome
impl Send for PreflightOutcome
impl Sync for PreflightOutcome
impl Unpin for PreflightOutcome
impl UnsafeUnpin for PreflightOutcome
impl UnwindSafe for PreflightOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more