pub struct StreamResult {
pub stream: BoxStream<'static, StreamPart>,
pub request: RequestMetadata,
pub response: ResponseMetadata,
}Expand description
Result of do_stream.
Fields§
§stream: BoxStream<'static, StreamPart>The stream of parts.
request: RequestMetadataRequest metadata.
response: ResponseMetadataResponse metadata known at stream start (typically headers only).
Implementations§
Source§impl StreamResult
impl StreamResult
Sourcepub fn new(stream: BoxStream<'static, StreamPart>) -> Self
pub fn new(stream: BoxStream<'static, StreamPart>) -> Self
Creates a stream result with default request and response metadata.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamResult
impl !Sync for StreamResult
impl !UnwindSafe for StreamResult
impl Freeze for StreamResult
impl Send for StreamResult
impl Unpin for StreamResult
impl UnsafeUnpin for StreamResult
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