Trait destream_json::de::Read[][src]

pub trait Read: Send + Unpin {
    #[must_use]
    fn next<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Option<Result<Bytes, Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn is_terminated(&self) -> bool; }

Required methods

#[must_use]
fn next<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Result<Bytes, Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn is_terminated(&self) -> bool[src]

Loading content...

Implementors

impl<S: Stream<Item = Result<Bytes, Error>> + Send + Unpin> Read for SourceStream<S>[src]

fn next<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Result<Bytes, Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn is_terminated(&self) -> bool[src]

Loading content...