pub struct Stability {
pub fonts: bool,
pub images: bool,
pub quiet_frames: u32,
pub timeout_ms: u32,
}Expand description
How long to let the page settle before capturing.
Fields§
§fonts: boolWait for document.fonts.ready. A capture taken mid font-swap shows
fallback metrics and is the single most common source of screenshot
churn.
images: boolWait for every <img> to finish decoding, not merely to load.
quiet_frames: u32Require this many consecutive animation frames with no DOM mutation.
timeout_ms: u32Give up waiting after this many milliseconds and capture anyway.
Trait Implementations§
impl Eq for Stability
impl StructuralPartialEq for Stability
Auto Trait Implementations§
impl Freeze for Stability
impl RefUnwindSafe for Stability
impl Send for Stability
impl Sync for Stability
impl Unpin for Stability
impl UnsafeUnpin for Stability
impl UnwindSafe for Stability
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