pub struct ResponseReceivedEarlyHintsEventParamsBuilder { /* private fields */ }Expand description
Builder for ResponseReceivedEarlyHintsEventParams.
Implementations§
Source§impl ResponseReceivedEarlyHintsEventParamsBuilder
impl ResponseReceivedEarlyHintsEventParamsBuilder
Sourcepub fn request_id(&mut self, value: RequestId) -> &mut Self
pub fn request_id(&mut self, value: RequestId) -> &mut Self
Request identifier. Used to match this information to another responseReceived event.
Sourcepub fn headers(&mut self, value: Headers) -> &mut Self
pub fn headers(&mut self, value: Headers) -> &mut Self
Raw response headers as they were received over the wire.
Duplicate headers in the response are represented as a single key with their values
concatentated using \n as the separator.
See also headersText that contains verbatim text for HTTP/1.*.
Sourcepub fn build(
&self,
) -> Result<ResponseReceivedEarlyHintsEventParams, ResponseReceivedEarlyHintsEventParamsBuilderError>
pub fn build( &self, ) -> Result<ResponseReceivedEarlyHintsEventParams, ResponseReceivedEarlyHintsEventParamsBuilderError>
Builds a new ResponseReceivedEarlyHintsEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ResponseReceivedEarlyHintsEventParamsBuilder
impl Clone for ResponseReceivedEarlyHintsEventParamsBuilder
Source§fn clone(&self) -> ResponseReceivedEarlyHintsEventParamsBuilder
fn clone(&self) -> ResponseReceivedEarlyHintsEventParamsBuilder
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 ResponseReceivedEarlyHintsEventParamsBuilder
impl RefUnwindSafe for ResponseReceivedEarlyHintsEventParamsBuilder
impl Send for ResponseReceivedEarlyHintsEventParamsBuilder
impl Sync for ResponseReceivedEarlyHintsEventParamsBuilder
impl Unpin for ResponseReceivedEarlyHintsEventParamsBuilder
impl UnsafeUnpin for ResponseReceivedEarlyHintsEventParamsBuilder
impl UnwindSafe for ResponseReceivedEarlyHintsEventParamsBuilder
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