pub struct Outcome {
pub via: Via,
pub scrolled: bool,
pub before: Option<f64>,
pub after: Option<f64>,
pub step: Option<f64>,
pub warnings: Vec<String>,
}Expand description
What a scroll actually did, in the shape the response carries.
Fields§
§via: ViaWhich mechanism produced the scroll.
scrolled: boolTrue only when a scroll-bar value changed.
before: Option<f64>Bar value before the scroll, when one could be read.
after: Option<f64>Bar value after the scroll, when one could be read.
step: Option<f64>Per-line fraction (0..=1) used for the AXValue write, or the value
we observed before honouring the event tier. None when the result
came back unreadable. Surfaced in the response for transparency.
warnings: Vec<String>Non-fatal notes. Outcome::warnings is empty on a clean event scroll.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn ax_scrollbar(
before: f64,
read_back: Option<f64>,
step: f64,
warnings: Vec<String>,
) -> Self
pub fn ax_scrollbar( before: f64, read_back: Option<f64>, step: f64, warnings: Vec<String>, ) -> Self
AXValue was written. read_back is the value re-read after the write.
Trait Implementations§
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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