pub struct LoadingFailedEventBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl LoadingFailedEventBuilder
impl LoadingFailedEventBuilder
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
pub fn request_id(&mut self, v: RequestId) -> &mut Self
Request identifier.
Sourcepub fn timestamp(&mut self, v: MonotonicTime) -> &mut Self
pub fn timestamp(&mut self, v: MonotonicTime) -> &mut Self
Timestamp.
Sourcepub fn type(&mut self, v: ResourceType) -> &mut Self
pub fn type(&mut self, v: ResourceType) -> &mut Self
Resource type.
Sourcepub fn error_text(&mut self, v: String) -> &mut Self
pub fn error_text(&mut self, v: String) -> &mut Self
User friendly error message.
Sourcepub fn blocked_reason(&mut self, v: BlockedReason) -> &mut Self
pub fn blocked_reason(&mut self, v: BlockedReason) -> &mut Self
The reason why loading was blocked, if any.
Sourcepub fn cors_error_status(&mut self, v: CorsErrorStatus) -> &mut Self
pub fn cors_error_status(&mut self, v: CorsErrorStatus) -> &mut Self
The reason why loading was blocked by CORS, if any.
pub fn build(&mut self) -> Result<LoadingFailedEvent, &'static str>
Trait Implementations§
Source§impl Clone for LoadingFailedEventBuilder
impl Clone for LoadingFailedEventBuilder
Source§fn clone(&self) -> LoadingFailedEventBuilder
fn clone(&self) -> LoadingFailedEventBuilder
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 LoadingFailedEventBuilder
impl Debug for LoadingFailedEventBuilder
Auto Trait Implementations§
impl Freeze for LoadingFailedEventBuilder
impl RefUnwindSafe for LoadingFailedEventBuilder
impl Send for LoadingFailedEventBuilder
impl Sync for LoadingFailedEventBuilder
impl Unpin for LoadingFailedEventBuilder
impl UnwindSafe for LoadingFailedEventBuilder
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