pub struct DownloadManager { /* private fields */ }Implementations§
Source§impl DownloadManager
impl DownloadManager
pub async fn restore(&self) -> Result<(), ErrorDetail>
pub async fn existing( &self, args: &DownloadStartArgs, ) -> Result<Option<DownloadRecord>, ErrorDetail>
pub fn is_active(&self) -> bool
pub fn list(&self) -> Vec<DownloadRecord>
pub fn get(&self, id: &str) -> Result<DownloadJob, ErrorDetail>
pub async fn wait(&self, id: &str, timeout_ms: u64) -> Response
pub fn cancel(&self, id: &str) -> Result<DownloadRecord, ErrorDetail>
pub async fn stop(&self)
pub async fn start( &self, browser: &Browser, source: &Page, args: DownloadStartArgs, selector: Option<LocatorSpec>, ) -> Result<DownloadRecord, ErrorDetail>
Trait Implementations§
Source§impl Clone for DownloadManager
impl Clone for DownloadManager
Auto Trait Implementations§
impl !RefUnwindSafe for DownloadManager
impl !UnwindSafe for DownloadManager
impl Freeze for DownloadManager
impl Send for DownloadManager
impl Sync for DownloadManager
impl Unpin for DownloadManager
impl UnsafeUnpin for DownloadManager
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