pub struct FailRequestCommand { /* private fields */ }Available on crate features
Fetch and Network and IO and Page only.Expand description
Causes the request to fail with specified reason.
Implementations§
Source§impl FailRequestCommand
impl FailRequestCommand
pub fn new(request_id: RequestId, error_reason: ErrorReason) -> Self
Sourcepub fn request_id(&self) -> &RequestId
pub fn request_id(&self) -> &RequestId
An id the client received in requestPaused event.
Sourcepub fn error_reason(&self) -> &ErrorReason
pub fn error_reason(&self) -> &ErrorReason
Causes the request to fail with the given reason.
Trait Implementations§
Source§impl Clone for FailRequestCommand
impl Clone for FailRequestCommand
Source§fn clone(&self) -> FailRequestCommand
fn clone(&self) -> FailRequestCommand
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 Command for FailRequestCommand
impl Command for FailRequestCommand
Source§impl Debug for FailRequestCommand
impl Debug for FailRequestCommand
Source§impl<'de> Deserialize<'de> for FailRequestCommand
impl<'de> Deserialize<'de> for FailRequestCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FailRequestCommand
impl RefUnwindSafe for FailRequestCommand
impl Send for FailRequestCommand
impl Sync for FailRequestCommand
impl Unpin for FailRequestCommand
impl UnwindSafe for FailRequestCommand
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