pub trait SeekableStream: AsyncRead + Unpin + Debug + Send + Sync + DynClone {
    fn reset<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
   where
        'life0: 'async_trait,
        Self: 'async_trait
; fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } }
Expand description

Enable a type implementing AsyncRead to be consumed as if it were a Stream of Bytes.

Required Methods

Provided Methods

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Values yielded by the stream.
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
Returns the bounds on the remaining length of the stream. Read more

Implementors