pub struct JsonStream<C, B, T> { /* private fields */ }
Expand description
An asynchronous JSON streamer for HTTP network requests.
Implementations§
Source§impl<C, B, T, D, E> JsonStream<C, B, T>
impl<C, B, T, D, E> JsonStream<C, B, T>
Sourcepub fn request(call: C, part: JsonPart) -> Self
pub fn request(call: C, part: JsonPart) -> Self
Creates a new JSON streamer from the given HTTP response future.
Completes the request and streams the body for status 2XX responses.
Use JsonStream::process
instead to customize response handling.
Trait Implementations§
Source§impl<C, B, T> Debug for JsonStream<C, B, T>
impl<C, B, T> Debug for JsonStream<C, B, T>
Source§impl<C, B, T, D, E> FusedStream for JsonStream<C, B, T>
impl<C, B, T, D, E> FusedStream for JsonStream<C, B, T>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.Source§impl<C, B, T, D, E> Stream for JsonStream<C, B, T>
impl<C, B, T, D, E> Stream for JsonStream<C, B, T>
Auto Trait Implementations§
impl<C, B, T> Freeze for JsonStream<C, B, T>
impl<C, B, T> !RefUnwindSafe for JsonStream<C, B, T>
impl<C, B, T> Send for JsonStream<C, B, T>
impl<C, B, T> Sync for JsonStream<C, B, T>
impl<C, B, T> Unpin for JsonStream<C, B, T>
impl<C, B, T> !UnwindSafe for JsonStream<C, B, T>
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