pub enum AcceptDownloads {
Accept,
Deny,
Internal,
}Expand description
Options for creating a new browser context.
Controls how downloads are handled in a BrowserContext.
See the accept_downloads field of BrowserContextOptions.
Variants§
Accept
Allow and capture downloads via the download event.
Deny
Block downloads.
Internal
Let the browser handle downloads natively without routing through Playwright.
Trait Implementations§
Source§impl Clone for AcceptDownloads
impl Clone for AcceptDownloads
Source§fn clone(&self) -> AcceptDownloads
fn clone(&self) -> AcceptDownloads
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 AcceptDownloads
impl Debug for AcceptDownloads
Source§impl From<bool> for AcceptDownloads
impl From<bool> for AcceptDownloads
Source§impl PartialEq for AcceptDownloads
impl PartialEq for AcceptDownloads
Source§impl Serialize for AcceptDownloads
impl Serialize for AcceptDownloads
impl Copy for AcceptDownloads
impl Eq for AcceptDownloads
impl StructuralPartialEq for AcceptDownloads
Auto Trait Implementations§
impl Freeze for AcceptDownloads
impl RefUnwindSafe for AcceptDownloads
impl Send for AcceptDownloads
impl Sync for AcceptDownloads
impl Unpin for AcceptDownloads
impl UnsafeUnpin for AcceptDownloads
impl UnwindSafe for AcceptDownloads
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