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: MetadataPrelude
The metadata prelude.
stream: S
The stream of bytes that will be sent to the client.
Trait Implementations§
Source§impl<S> Debug for StreamResponse<S>where
S: Debug,
impl<S> Debug for StreamResponse<S>where
S: Debug,
Source§impl<S, D, E> From<S> for StreamResponse<S>
impl<S, D, E> From<S> for StreamResponse<S>
Source§fn from(value: S) -> StreamResponse<S>
fn from(value: S) -> StreamResponse<S>
Converts to this type from the input type.
Source§impl<S, D, E> IntoFunctionResponse<(), S> for StreamResponse<S>
impl<S, D, E> IntoFunctionResponse<(), S> for StreamResponse<S>
Source§fn into_response(self) -> FunctionResponse<(), S>
fn into_response(self) -> FunctionResponse<(), S>
Convert the type into a FunctionResponse.
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> 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