pub struct TakeResponseBodyForInterceptionAsStream {
pub method: TakeResponseBodyForInterceptionAsStreamMethod,
pub params: TakeResponseBodyForInterceptionAsStreamParams,
}Expand description
Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can’t be continued as is – you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. takeResponseBodyForInterceptionAsStream
Fields§
§method: TakeResponseBodyForInterceptionAsStreamMethod§params: TakeResponseBodyForInterceptionAsStreamParamsImplementations§
Source§impl TakeResponseBodyForInterceptionAsStream
impl TakeResponseBodyForInterceptionAsStream
pub const IDENTIFIER: &'static str = "Network.takeResponseBodyForInterceptionAsStream"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for TakeResponseBodyForInterceptionAsStream
impl Clone for TakeResponseBodyForInterceptionAsStream
Source§fn clone(&self) -> TakeResponseBodyForInterceptionAsStream
fn clone(&self) -> TakeResponseBodyForInterceptionAsStream
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 CommandResult for TakeResponseBodyForInterceptionAsStream
impl CommandResult for TakeResponseBodyForInterceptionAsStream
type Result = TakeResponseBodyForInterceptionAsStreamResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for TakeResponseBodyForInterceptionAsStream
impl<'de> Deserialize<'de> for TakeResponseBodyForInterceptionAsStream
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
Source§impl From<TakeResponseBodyForInterceptionAsStream> for BrowserProtocolCommands
impl From<TakeResponseBodyForInterceptionAsStream> for BrowserProtocolCommands
Source§fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self
fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self
Converts to this type from the input type.
Source§impl From<TakeResponseBodyForInterceptionAsStream> for Command
impl From<TakeResponseBodyForInterceptionAsStream> for Command
Source§fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self
fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self
Converts to this type from the input type.
Source§impl From<TakeResponseBodyForInterceptionAsStream> for NetworkCommands
impl From<TakeResponseBodyForInterceptionAsStream> for NetworkCommands
Source§fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self
fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TakeResponseBodyForInterceptionAsStream
impl PartialEq for TakeResponseBodyForInterceptionAsStream
Source§fn eq(&self, other: &TakeResponseBodyForInterceptionAsStream) -> bool
fn eq(&self, other: &TakeResponseBodyForInterceptionAsStream) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for TakeResponseBodyForInterceptionAsStream
impl TryFrom<BrowserProtocolCommands> for TakeResponseBodyForInterceptionAsStream
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <TakeResponseBodyForInterceptionAsStream as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <TakeResponseBodyForInterceptionAsStream as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommands> for TakeResponseBodyForInterceptionAsStream
impl TryFrom<NetworkCommands> for TakeResponseBodyForInterceptionAsStream
Source§type Error = NetworkCommands
type Error = NetworkCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommands,
) -> Result<Self, <TakeResponseBodyForInterceptionAsStream as TryFrom<NetworkCommands>>::Error>
fn try_from( e: NetworkCommands, ) -> Result<Self, <TakeResponseBodyForInterceptionAsStream as TryFrom<NetworkCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for TakeResponseBodyForInterceptionAsStream
Auto Trait Implementations§
impl Freeze for TakeResponseBodyForInterceptionAsStream
impl RefUnwindSafe for TakeResponseBodyForInterceptionAsStream
impl Send for TakeResponseBodyForInterceptionAsStream
impl Sync for TakeResponseBodyForInterceptionAsStream
impl Unpin for TakeResponseBodyForInterceptionAsStream
impl UnsafeUnpin for TakeResponseBodyForInterceptionAsStream
impl UnwindSafe for TakeResponseBodyForInterceptionAsStream
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