pub struct SnapshotOptions { /* private fields */ }Expand description
Configuration options for ARIA snapshot capture.
Use this struct to tune snapshot performance and behavior.
§Example
use viewpoint_core::SnapshotOptions;
// Default options
let options = SnapshotOptions::default();
// Skip ref resolution for faster snapshots
let options = SnapshotOptions::default().include_refs(false);
// Increase concurrency for fast networks
let options = SnapshotOptions::default().max_concurrency(100);Implementations§
Source§impl SnapshotOptions
impl SnapshotOptions
Sourcepub fn max_concurrency(self, max: usize) -> Self
pub fn max_concurrency(self, max: usize) -> Self
Set the maximum number of concurrent CDP calls for node resolution.
Higher values improve performance but may overwhelm slow connections. Default: 50
Sourcepub fn include_refs(self, include: bool) -> Self
pub fn include_refs(self, include: bool) -> Self
Set whether to include element refs (backendNodeIds) in the snapshot.
Set to false to skip ref resolution for maximum performance when
you only need the accessibility tree structure.
Default: true
Sourcepub fn get_max_concurrency(&self) -> usize
pub fn get_max_concurrency(&self) -> usize
Get the maximum concurrency setting.
Sourcepub fn get_include_refs(&self) -> bool
pub fn get_include_refs(&self) -> bool
Get whether refs should be included.
Trait Implementations§
Source§impl Clone for SnapshotOptions
impl Clone for SnapshotOptions
Source§fn clone(&self) -> SnapshotOptions
fn clone(&self) -> SnapshotOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotOptions
impl Debug for SnapshotOptions
Auto Trait Implementations§
impl Freeze for SnapshotOptions
impl RefUnwindSafe for SnapshotOptions
impl Send for SnapshotOptions
impl Sync for SnapshotOptions
impl Unpin for SnapshotOptions
impl UnwindSafe for SnapshotOptions
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