Struct destream_json::de::SourceStream
source · pub struct SourceStream<S> { /* private fields */ }
Expand description
A decodable [Stream
]
Trait Implementations§
source§impl<S: Stream> From<S> for SourceStream<S>
impl<S: Stream> From<S> for SourceStream<S>
source§impl<S: Stream<Item = Result<Bytes, Error>> + Send + Unpin> Read for SourceStream<S>
impl<S: Stream<Item = Result<Bytes, Error>> + Send + Unpin> Read for SourceStream<S>
source§fn next<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Result<Bytes, Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Result<Bytes, Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the next chunk of
Bytes
in this [Stream
].source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Return
true
if there are no more contents to be read from this [Stream
].Auto Trait Implementations§
impl<S> RefUnwindSafe for SourceStream<S>where
S: RefUnwindSafe,
impl<S> Send for SourceStream<S>where
S: Send,
impl<S> Sync for SourceStream<S>where
S: Sync,
impl<S> Unpin for SourceStream<S>where
S: Unpin,
impl<S> UnwindSafe for SourceStream<S>where
S: UnwindSafe,
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