Struct gapi_grpc::google::bytestream::ReadRequest[][src]

pub struct ReadRequest {
    pub resource_name: String,
    pub read_offset: i64,
    pub read_limit: i64,
}

Request object for ByteStream.Read.

Fields

resource_name: String

The name of the resource to read.

read_offset: i64

The offset for the first byte to return in the read, relative to the start of the resource.

A read_offset that is negative or greater than the size of the resource will cause an OUT_OF_RANGE error.

read_limit: i64

The maximum number of data bytes the server is allowed to return in the sum of all ReadResponse messages. A read_limit of zero indicates that there is no limit, and a negative read_limit will cause an error.

If the stream returns fewer bytes than allowed by the read_limit and no error occurred, the stream includes all data from the read_offset to the end of the resource.

Trait Implementations

impl Clone for ReadRequest[src]

impl Debug for ReadRequest[src]

impl Default for ReadRequest[src]

impl Message for ReadRequest[src]

impl PartialEq<ReadRequest> for ReadRequest[src]

impl StructuralPartialEq for ReadRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ReadRequest

impl Send for ReadRequest

impl Sync for ReadRequest

impl Unpin for ReadRequest

impl UnwindSafe for ReadRequest

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]