pub enum DownloadSource {
Url(String),
Captured {
id: Option<u64>,
},
}Expand description
What Engine::download should hand back.
Variants§
Url(String)
Read url from inside the page, with the page’s own cookies and
referer. Relative URLs resolve against the current document.
Captured
Drain the newest download the page tried to perform (a
download anchor, a blob: navigation, a viewer’s save button)
and that the shim captured. id selects a specific buffered
entry; None takes the newest completed one.
Trait Implementations§
Source§impl Clone for DownloadSource
impl Clone for DownloadSource
Auto Trait Implementations§
impl Forget for DownloadSource
impl Freeze for DownloadSource
impl Move for DownloadSource
impl RefUnwindSafe for DownloadSource
impl Send for DownloadSource
impl Sync for DownloadSource
impl Unpin for DownloadSource
impl UnsafeUnpin for DownloadSource
impl UnwindSafe for DownloadSource
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