pub struct RequestPausedEventBuilder { /* private fields */ }Available on crate features
Fetch and Network and IO and Page only.Implementations§
Source§impl RequestPausedEventBuilder
impl RequestPausedEventBuilder
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
pub fn request_id(&mut self, v: RequestId) -> &mut Self
Each request the page makes will have a unique id.
Sourcepub fn frame_id(&mut self, v: FrameId) -> &mut Self
pub fn frame_id(&mut self, v: FrameId) -> &mut Self
The id of the frame that initiated the request.
Sourcepub fn resource_type(&mut self, v: ResourceType) -> &mut Self
pub fn resource_type(&mut self, v: ResourceType) -> &mut Self
How the requested resource will be used.
Sourcepub fn response_error_reason(&mut self, v: ErrorReason) -> &mut Self
pub fn response_error_reason(&mut self, v: ErrorReason) -> &mut Self
Response error if intercepted at response stage.
Sourcepub fn response_status_code(&mut self, v: u32) -> &mut Self
pub fn response_status_code(&mut self, v: u32) -> &mut Self
Response code if intercepted at response stage.
Sourcepub fn response_headers(&mut self, v: Vec<HeaderEntry>) -> &mut Self
pub fn response_headers(&mut self, v: Vec<HeaderEntry>) -> &mut Self
Response headers if intercepted at the response stage.
Sourcepub fn network_id(&mut self, v: RequestId) -> &mut Self
pub fn network_id(&mut self, v: RequestId) -> &mut Self
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
pub fn build(&mut self) -> Result<RequestPausedEvent, &'static str>
Trait Implementations§
Source§impl Clone for RequestPausedEventBuilder
impl Clone for RequestPausedEventBuilder
Source§fn clone(&self) -> RequestPausedEventBuilder
fn clone(&self) -> RequestPausedEventBuilder
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 RequestPausedEventBuilder
impl Debug for RequestPausedEventBuilder
Auto Trait Implementations§
impl Freeze for RequestPausedEventBuilder
impl RefUnwindSafe for RequestPausedEventBuilder
impl Send for RequestPausedEventBuilder
impl Sync for RequestPausedEventBuilder
impl Unpin for RequestPausedEventBuilder
impl UnwindSafe for RequestPausedEventBuilder
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