pub struct RequestWillBeSentEventBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl RequestWillBeSentEventBuilder
impl RequestWillBeSentEventBuilder
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
pub fn request_id(&mut self, v: RequestId) -> &mut Self
Request identifier.
Sourcepub fn loader_id(&mut self, v: LoaderId) -> &mut Self
pub fn loader_id(&mut self, v: LoaderId) -> &mut Self
Loader identifier. Empty string if the request is fetched from worker.
Sourcepub fn document_url(&mut self, v: String) -> &mut Self
pub fn document_url(&mut self, v: String) -> &mut Self
URL of the document this request is loaded for.
Sourcepub fn timestamp(&mut self, v: MonotonicTime) -> &mut Self
pub fn timestamp(&mut self, v: MonotonicTime) -> &mut Self
Timestamp.
Sourcepub fn wall_time(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn wall_time(&mut self, v: TimeSinceEpoch) -> &mut Self
Timestamp.
Sourcepub fn redirect_response(&mut self, v: Response) -> &mut Self
pub fn redirect_response(&mut self, v: Response) -> &mut Self
Redirect response data.
Sourcepub fn type(&mut self, v: ResourceType) -> &mut Self
pub fn type(&mut self, v: ResourceType) -> &mut Self
Type of this resource.
Sourcepub fn has_user_gesture(&mut self, v: bool) -> &mut Self
pub fn has_user_gesture(&mut self, v: bool) -> &mut Self
Whether the request is initiated by a user gesture. Defaults to false.
pub fn build(&mut self) -> Result<RequestWillBeSentEvent, &'static str>
Trait Implementations§
Source§impl Clone for RequestWillBeSentEventBuilder
impl Clone for RequestWillBeSentEventBuilder
Source§fn clone(&self) -> RequestWillBeSentEventBuilder
fn clone(&self) -> RequestWillBeSentEventBuilder
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 moreAuto Trait Implementations§
impl Freeze for RequestWillBeSentEventBuilder
impl RefUnwindSafe for RequestWillBeSentEventBuilder
impl Send for RequestWillBeSentEventBuilder
impl Sync for RequestWillBeSentEventBuilder
impl Unpin for RequestWillBeSentEventBuilder
impl UnwindSafe for RequestWillBeSentEventBuilder
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