#[non_exhaustive]pub enum Animations {
Allow,
Disabled,
}Expand description
Whether to play or freeze CSS animations and transitions during capture.
Used by ScreenshotOptions and by the to_have_screenshot visual
assertions. Disabled is the value to use for stable screenshots.
See: https://playwright.dev/docs/api/class-page#page-screenshot-option-animations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Allow
Allow animations to run normally.
Disabled
Disable CSS animations and transitions before capturing.
Trait Implementations§
Source§impl Clone for Animations
impl Clone for Animations
Source§fn clone(&self) -> Animations
fn clone(&self) -> Animations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Animations
Source§impl Debug for Animations
impl Debug for Animations
impl Eq for Animations
Source§impl PartialEq for Animations
impl PartialEq for Animations
Source§fn eq(&self, other: &Animations) -> bool
fn eq(&self, other: &Animations) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Animations
impl Serialize for Animations
impl StructuralPartialEq for Animations
Auto Trait Implementations§
impl Freeze for Animations
impl RefUnwindSafe for Animations
impl Send for Animations
impl Sync for Animations
impl Unpin for Animations
impl UnsafeUnpin for Animations
impl UnwindSafe for Animations
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