pub struct LoadingFailedEventParamsBuilder { /* private fields */ }Expand description
Builder for LoadingFailedEventParams.
Implementations§
Source§impl LoadingFailedEventParamsBuilder
impl LoadingFailedEventParamsBuilder
Sourcepub fn request_id(&mut self, value: RequestId) -> &mut Self
pub fn request_id(&mut self, value: RequestId) -> &mut Self
Request identifier.
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 error_text(&mut self, value: String) -> &mut Self
pub fn error_text(&mut self, value: String) -> &mut Self
Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h
Sourcepub fn blocked_reason(&mut self, value: Option<BlockedReason>) -> &mut Self
pub fn blocked_reason(&mut self, value: Option<BlockedReason>) -> &mut Self
The reason why loading was blocked, if any.
Sourcepub fn cors_error_status(&mut self, value: Option<CorsErrorStatus>) -> &mut Self
pub fn cors_error_status(&mut self, value: Option<CorsErrorStatus>) -> &mut Self
The reason why loading was blocked by CORS, if any.
Sourcepub fn build(
&self,
) -> Result<LoadingFailedEventParams, LoadingFailedEventParamsBuilderError>
pub fn build( &self, ) -> Result<LoadingFailedEventParams, LoadingFailedEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for LoadingFailedEventParamsBuilder
impl Clone for LoadingFailedEventParamsBuilder
Source§fn clone(&self) -> LoadingFailedEventParamsBuilder
fn clone(&self) -> LoadingFailedEventParamsBuilder
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 LoadingFailedEventParamsBuilder
impl RefUnwindSafe for LoadingFailedEventParamsBuilder
impl Send for LoadingFailedEventParamsBuilder
impl Sync for LoadingFailedEventParamsBuilder
impl Unpin for LoadingFailedEventParamsBuilder
impl UnsafeUnpin for LoadingFailedEventParamsBuilder
impl UnwindSafe for LoadingFailedEventParamsBuilder
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