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

pub struct WriteRequest {
    pub resource_name: String,
    pub write_offset: i64,
    pub finish_write: bool,
    pub data: Vec<u8>,
}
[]

Request object for ByteStream.Write.

Fields

resource_name: String
[]

The name of the resource to write. This must be set on the first WriteRequest of each Write() action. If it is set on subsequent calls, it must match the value of the first request.

write_offset: i64
[]

The offset from the beginning of the resource at which the data should be written. It is required on all WriteRequests.

In the first WriteRequest of a Write() action, it indicates the initial offset for the Write() call. The value must be equal to the committed_size that a call to QueryWriteStatus() would return.

On subsequent calls, this value must be set and must be equal to the sum of the first write_offset and the sizes of all data bundles sent previously on this stream.

An incorrect value will cause an error.

finish_write: bool
[]

If true, this indicates that the write is complete. Sending any WriteRequests subsequent to one in which finish_write is true will cause an error.

data: Vec<u8>
[]

A portion of the data for the resource. The client may leave data empty for any given WriteRequest. This enables the client to inform the service that the request is still live while it is running an operation to generate more data.

Trait Implementations

impl Clone for WriteRequest[src][+]

impl Debug for WriteRequest[src][+]

impl Default for WriteRequest[src][+]

impl Message for WriteRequest[src][+]

impl PartialEq<WriteRequest> for WriteRequest[src][+]

impl StructuralPartialEq for WriteRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for WriteRequest

impl Send for WriteRequest

impl Sync for WriteRequest

impl Unpin for WriteRequest

impl UnwindSafe for WriteRequest

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][+]