#[non_exhaustive]pub struct BrowserPostHookCtx<'a> {
pub request: &'a Request,
pub page: &'a PageHandle,
pub response: Option<&'a BrowserResponse>,
pub session: Option<&'a Session>,
pub proxy: Option<&'a ProxyInfo>,
}Expand description
Context supplied to browser post-navigation hooks.
The proposed INTERFACE §18 log field is omitted because no Log type exists; use tracing
macros instead. This context is non-exhaustive so log can be added later without a breaking
change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request: &'a RequestRequest that was navigated.
page: &'a PageHandleLive page after navigation and status classification.
response: Option<&'a BrowserResponse>Navigation response metadata, when exposed by the provider.
session: Option<&'a Session>Session selected for this attempt, when sessions are enabled.
proxy: Option<&'a ProxyInfo>Proxy assigned to the browser containing the page.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BrowserPostHookCtx<'a>
impl<'a> !UnwindSafe for BrowserPostHookCtx<'a>
impl<'a> Freeze for BrowserPostHookCtx<'a>
impl<'a> Send for BrowserPostHookCtx<'a>
impl<'a> Sync for BrowserPostHookCtx<'a>
impl<'a> Unpin for BrowserPostHookCtx<'a>
impl<'a> UnsafeUnpin for BrowserPostHookCtx<'a>
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