pub struct Request<'a> {
    pub chunks: Option<&'a mut [Bytes]>,
    pub reset: Option<Error>,
    pub flush: bool,
    pub finish: bool,
}
Expand description

A request on a tx stream

Fields

chunks: Option<&'a mut [Bytes]>

Optionally transmit chunks onto the stream

The chunks will be replaced with empty buffers as they are stored in the transmission buffer. The response will indicate how many chunks and bytes were consumed from this slice.

reset: Option<Error>

Optionally reset the stream with an error

flush: bool

Waits for an ACK on resets and finishes

finish: bool

Marks the tx stream as finished (e.g. no more data will be sent)

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.