pub struct DownloadWillBeginEvent { /* private fields */ }
Available on crate features
Browser
and experimental
only.Expand description
Fired when page is about to start a download.
Implementations§
Source§impl DownloadWillBeginEvent
impl DownloadWillBeginEvent
pub fn builder() -> DownloadWillBeginEventBuilder
Sourcepub fn suggested_filename(&self) -> &str
pub fn suggested_filename(&self) -> &str
Suggested file name of the resource (the actual name of the file saved on disk may differ).
Trait Implementations§
Source§impl Clone for DownloadWillBeginEvent
impl Clone for DownloadWillBeginEvent
Source§fn clone(&self) -> DownloadWillBeginEvent
fn clone(&self) -> DownloadWillBeginEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DownloadWillBeginEvent
impl Debug for DownloadWillBeginEvent
Source§impl<'de> Deserialize<'de> for DownloadWillBeginEvent
impl<'de> Deserialize<'de> for DownloadWillBeginEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DownloadWillBeginEvent
impl RefUnwindSafe for DownloadWillBeginEvent
impl Send for DownloadWillBeginEvent
impl Sync for DownloadWillBeginEvent
impl Unpin for DownloadWillBeginEvent
impl UnwindSafe for DownloadWillBeginEvent
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