pub struct SnapshotBuilder {
inner: Weak<Page>,
args: AccessibilitySnapshotArgs,
}Fields§
§inner: Weak<Page>§args: AccessibilitySnapshotArgsImplementations§
Source§impl SnapshotBuilder
impl SnapshotBuilder
fn new(inner: Weak<PageImpl>) -> Self
pub async fn snapshot(self) -> Result<Option<SnapshotResponse>, Arc<Error>>
Sourcepub fn try_root(self, x: ElementHandle) -> Result<Self, Error>
pub fn try_root(self, x: ElementHandle) -> Result<Self, Error>
The root DOM element for the snapshot. Defaults to the whole page.
Sourcepub fn interesting_only(self, x: bool) -> Self
pub fn interesting_only(self, x: bool) -> Self
Prune uninteresting nodes from the tree. Defaults to true.
pub fn clear_interesting_only(self) -> Self
pub fn clear_root(self) -> Self
Auto Trait Implementations§
impl Freeze for SnapshotBuilder
impl RefUnwindSafe for SnapshotBuilder
impl Send for SnapshotBuilder
impl Sync for SnapshotBuilder
impl Unpin for SnapshotBuilder
impl UnwindSafe for SnapshotBuilder
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