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
Auto Trait Implementations
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> !UnwindSafe for Request<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more