Struct chrome_remote_interface_model::io::ReadCommand[][src]

pub struct ReadCommand { /* fields omitted */ }
This is supported on crate feature IO only.

Read a chunk of the stream

Implementations

impl ReadCommand[src]

pub fn new(handle: StreamHandle, offset: Option<u32>, size: Option<u32>) -> Self[src]

pub fn handle(&self) -> &StreamHandle[src]

Handle of the stream to read.

pub fn offset(&self) -> Option<&u32>[src]

Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). Some types of streams may only support sequential reads.

pub fn size(&self) -> Option<&u32>[src]

Maximum number of bytes to read (left upon the agent discretion if not specified).

Trait Implementations

impl Clone for ReadCommand[src]

impl Command for ReadCommand[src]

type Return = ReadReturn

Return type.

impl Debug for ReadCommand[src]

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

impl Serialize for ReadCommand[src]

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> From<T> for T[src]

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

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.