pub struct StreamingResponse { /* private fields */ }Implementations§
Source§impl StreamingResponse
impl StreamingResponse
pub fn from_parts( status: u16, headers: HashMap<String, String>, body_stream: Receiver<ResponseChunk>, ) -> Result<Self>
pub fn into_parts( self, ) -> (u16, HashMap<String, String>, Receiver<ResponseChunk>)
Trait Implementations§
Source§impl From<StreamingResponse> for ActorHttpResponse
impl From<StreamingResponse> for ActorHttpResponse
Source§fn from(value: StreamingResponse) -> Self
fn from(value: StreamingResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamingResponse
impl RefUnwindSafe for StreamingResponse
impl Send for StreamingResponse
impl Sync for StreamingResponse
impl Unpin for StreamingResponse
impl UnsafeUnpin for StreamingResponse
impl UnwindSafe for StreamingResponse
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