pub struct StreamResponse<S> {
pub metadata_prelude: MetadataPrelude,
pub stream: S,
}Expand description
A streaming response that contains the metadata prelude and the stream of bytes that will be sent to the client.
Fieldsยง
ยงmetadata_prelude: MetadataPreludeThe metadata prelude.
stream: SThe stream of bytes that will be sent to the client.
Trait Implementationsยง
Sourceยงimpl<S: Debug> Debug for StreamResponse<S>
impl<S: Debug> Debug for StreamResponse<S>
Sourceยงimpl<S, D, E> From<S> for StreamResponse<S>
impl<S, D, E> From<S> for StreamResponse<S>
Auto Trait Implementationsยง
impl<S> Freeze for StreamResponse<S>where
S: Freeze,
impl<S> RefUnwindSafe for StreamResponse<S>where
S: RefUnwindSafe,
impl<S> Send for StreamResponse<S>where
S: Send,
impl<S> Sync for StreamResponse<S>where
S: Sync,
impl<S> Unpin for StreamResponse<S>where
S: Unpin,
impl<S> UnsafeUnpin for StreamResponse<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StreamResponse<S>where
S: UnwindSafe,
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