pub struct StreamResponse { /* private fields */ }Expand description
流式响应
用于创建流式数据响应。
Implementations§
Trait Implementations§
Source§impl IntoResponse for StreamResponse
impl IntoResponse for StreamResponse
Source§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
将类型转换为 HTTP 响应
Auto Trait Implementations§
impl !Freeze for StreamResponse
impl RefUnwindSafe for StreamResponse
impl Send for StreamResponse
impl Sync for StreamResponse
impl Unpin for StreamResponse
impl UnsafeUnpin for StreamResponse
impl UnwindSafe for StreamResponse
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