pub struct PageSetup {
pub interceptor: Option<RequestInterceptor>,
pub download: Option<DownloadBehavior>,
}Expand description
What to install on a page before its first navigation; see BrowserSession::new_page_with.
Fields§
§interceptor: Option<RequestInterceptor>Request interceptor (see BrowserPage::set_request_interceptor).
download: Option<DownloadBehavior>Download behaviour (see BrowserPage::set_download_behavior).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PageSetup
impl !UnwindSafe for PageSetup
impl Forget for PageSetup
impl Freeze for PageSetupwhere
*const ArcInner<dyn Fn(InterceptedRequest) -> Pin<Box<dyn Future<Output = InterceptDecision> + Send>> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(InterceptedRequest) -> Pin<Box<dyn Future<Output = InterceptDecision> + Send>> + Sync + Send>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for PageSetup
impl Send for PageSetup
impl Sync for PageSetup
impl Unpin for PageSetup
impl UnsafeUnpin for PageSetupwhere
*const ArcInner<dyn Fn(InterceptedRequest) -> Pin<Box<dyn Future<Output = InterceptDecision> + Send>> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(InterceptedRequest) -> Pin<Box<dyn Future<Output = InterceptDecision> + Send>> + Sync + Send>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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