Struct chromiumoxide::cdp::browser_protocol::fetch::EventRequestPaused[][src]

pub struct EventRequestPaused {
    pub request_id: RequestId,
    pub request: Request,
    pub frame_id: FrameId,
    pub resource_type: ResourceType,
    pub response_error_reason: Option<ErrorReason>,
    pub response_status_code: Option<i64>,
    pub response_headers: Option<Vec<HeaderEntry, Global>>,
    pub network_id: Option<RequestId>,
}

Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode – the request is at the response stage if either of these fields is present and in the request stage otherwise. requestPaused

Fields

request_id: RequestId

Each request the page makes will have a unique id.

request: Request

The details of the request.

frame_id: FrameId

The id of the frame that initiated the request.

resource_type: ResourceType

How the requested resource will be used.

response_error_reason: Option<ErrorReason>

Response error if intercepted at response stage.

response_status_code: Option<i64>

Response code if intercepted at response stage.

response_headers: Option<Vec<HeaderEntry, Global>>

Response headers if intercepted at the response stage.

network_id: Option<RequestId>

If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.

Implementations

impl EventRequestPaused[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for EventRequestPaused[src]

impl Debug for EventRequestPaused[src]

impl<'de> Deserialize<'de> for EventRequestPaused[src]

impl Into<CdpEvent> for EventRequestPaused[src]

impl IntoEventKind for EventRequestPaused[src]

impl Method for EventRequestPaused[src]

impl MethodType for EventRequestPaused[src]

impl PartialEq<EventRequestPaused> for EventRequestPaused[src]

impl Serialize for EventRequestPaused[src]

impl StructuralPartialEq for EventRequestPaused[src]

impl TryFrom<CdpEvent> for EventRequestPaused[src]

type Error = CdpEvent

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Event for T where
    T: SealedEvent, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,