pub struct HttpBody { /* private fields */ }Expand description
The streaming body returned by HttpTransporter.
We implement oio::ReadStream for HttpBody. Services can use
HttpBody as Service::Reader.
Implementations§
Source§impl HttpBody
impl HttpBody
Sourcepub fn new<S>(stream: S, size: Option<u64>) -> Self
Available on non-WebAssembly only.
pub fn new<S>(stream: S, size: Option<u64>) -> Self
Create a new HttpBody with given stream and optional size.
Trait Implementations§
Source§impl ReadStream for HttpBody
impl ReadStream for HttpBody
impl Send for HttpBody
§Safety
HttpBody is Send on non-wasm targets.
impl Sync for HttpBody
§Safety
HttpBody is Sync on non-wasm targets.
Auto Trait Implementations§
impl Freeze for HttpBody
impl !RefUnwindSafe for HttpBody
impl Unpin for HttpBody
impl UnsafeUnpin for HttpBody
impl !UnwindSafe for HttpBody
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