pub enum WebBody {
Bytes(Bytes),
Stream(BoxStream<'static, Result<Bytes, Error>>),
}Expand description
响应体:一次性字节内容或持续输出的流。
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WebBody
impl !RefUnwindSafe for WebBody
impl !Sync for WebBody
impl !UnwindSafe for WebBody
impl Send for WebBody
impl Unpin for WebBody
impl UnsafeUnpin for WebBody
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