#[non_exhaustive]pub struct Capture<H> {
pub window: WindowInfo,
pub nodes: Vec<RawNode<H>>,
pub truncated: bool,
pub focused: Option<usize>,
pub selected_text: Option<String>,
pub screenshot: Option<RawImage>,
pub notes: Vec<String>,
}Expand description
What a backend returns from Backend::capture.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.window: WindowInfoThe captured window.
nodes: Vec<RawNode<H>>Accessibility nodes in depth-first pre-order, rooted at the window.
truncated: boolWhether limits cut the walk short.
focused: Option<usize>Index into nodes of the focused element.
selected_text: Option<String>Selected text in the focused element.
screenshot: Option<RawImage>Window pixels; the image must cover exactly window.frame.
notes: Vec<String>Non-fatal problems worth surfacing, e.g. why a screenshot is missing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<H> Forget for Capture<H>
impl<H> Freeze for Capture<H>
impl<H> RefUnwindSafe for Capture<H>
impl<H> Send for Capture<H>
impl<H> Sync for Capture<H>
impl<H> Unpin for Capture<H>
impl<H> UnsafeUnpin for Capture<H>
impl<H> UnwindSafe for Capture<H>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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