Struct cdp::io::ReadCommand
[−]
[src]
pub struct ReadCommand<'a> { pub handle: StreamHandle<'a>, pub offset: Option<i32>, pub size: Option<i32>, }
[Experimental] Read a chunk of the stream
Command IO.read
Domain Module: cdp::io
Command Struct: cdp::io::ReadCommand
Response Struct: cdp::io::ReadResponse
Fields
handle: StreamHandle<'a>
Handle of the stream to read.
offset: Option<i32>
Seek to the specified offset before reading (if not specificed, proceed with offset following the last read).
size: Option<i32>
Maximum number of bytes to read (left upon the agent discretion if not specified).
Trait Implementations
impl<'a> Clone for ReadCommand<'a>
[src]
fn clone(&self) -> ReadCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for ReadCommand<'a>
[src]
impl<'a> PartialEq for ReadCommand<'a>
[src]
fn eq(&self, __arg_0: &ReadCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReadCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for ReadCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "IO.read"
impl<'a> SerializeCdpCommand for ReadCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for ReadCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,