pub struct ResponseReceivedEventParamsBuilder { /* private fields */ }Expand description
Builder for ResponseReceivedEventParams.
Implementations§
Source§impl ResponseReceivedEventParamsBuilder
impl ResponseReceivedEventParamsBuilder
Sourcepub fn request_id(&mut self, value: RequestId) -> &mut Self
pub fn request_id(&mut self, value: RequestId) -> &mut Self
Request identifier.
Sourcepub fn loader_id(&mut self, value: LoaderId) -> &mut Self
pub fn loader_id(&mut self, value: LoaderId) -> &mut Self
Loader identifier. Empty string if the request is fetched from worker.
Sourcepub fn timestamp(&mut self, value: MonotonicTime) -> &mut Self
pub fn timestamp(&mut self, value: MonotonicTime) -> &mut Self
Timestamp.
Sourcepub fn type(&mut self, value: ResourceType) -> &mut Self
pub fn type(&mut self, value: ResourceType) -> &mut Self
Resource type.
Sourcepub fn has_extra_info(&mut self, value: bool) -> &mut Self
pub fn has_extra_info(&mut self, value: bool) -> &mut Self
Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request.
Sourcepub fn build(
&self,
) -> Result<ResponseReceivedEventParams, ResponseReceivedEventParamsBuilderError>
pub fn build( &self, ) -> Result<ResponseReceivedEventParams, ResponseReceivedEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for ResponseReceivedEventParamsBuilder
impl Clone for ResponseReceivedEventParamsBuilder
Source§fn clone(&self) -> ResponseReceivedEventParamsBuilder
fn clone(&self) -> ResponseReceivedEventParamsBuilder
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 ResponseReceivedEventParamsBuilder
impl RefUnwindSafe for ResponseReceivedEventParamsBuilder
impl Send for ResponseReceivedEventParamsBuilder
impl Sync for ResponseReceivedEventParamsBuilder
impl Unpin for ResponseReceivedEventParamsBuilder
impl UnsafeUnpin for ResponseReceivedEventParamsBuilder
impl UnwindSafe for ResponseReceivedEventParamsBuilder
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