playwright/api/
video.rs

1use crate::imp::{core::*, prelude::*, video::Video as Impl};
2
3#[derive(Debug, Clone)]
4pub struct Video {
5    inner: Impl
6}
7
8impl Video {
9    pub(crate) fn new(inner: Impl) -> Self { Self { inner } }
10
11    pub fn path(&self) -> Result<PathBuf, Error> { self.inner.path() }
12
13    // doesn't work with this version
14    async fn save_as<P: AsRef<Path>>(&self, path: P) -> ArcResult<()> {
15        self.inner.save_as(path).await
16    }
17
18    // doesn't work with this version
19    async fn delete(&self) -> ArcResult<()> { self.inner.delete().await }
20}