pub struct StreamingHttpResponse {
pub status: u16,
pub retry_after: Option<String>,
pub byte_stream: Pin<Box<dyn Stream<Item = Result<Bytes>> + Send>>,
pub error_body: String,
}Expand description
HTTP response from a streaming POST request
Fields§
§status: u16§retry_after: Option<String>Retry-After header value (if present)
byte_stream: Pin<Box<dyn Stream<Item = Result<Bytes>> + Send>>Byte stream (valid when status is 2xx)
error_body: StringError body (populated when status is not 2xx)
Auto Trait Implementations§
impl Freeze for StreamingHttpResponse
impl !RefUnwindSafe for StreamingHttpResponse
impl Send for StreamingHttpResponse
impl !Sync for StreamingHttpResponse
impl Unpin for StreamingHttpResponse
impl UnsafeUnpin for StreamingHttpResponse
impl !UnwindSafe for StreamingHttpResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more