Trait eye_hal::traits::Stream

source ·
pub trait Stream<'a> {
    type Item;

    // Required method
    fn next(&'a mut self) -> Option<Self::Item>;
}
Expand description

Stream abstraction

A stream is a construct which offers one item at a time. Once the next item is available, the previous one is discarded and thus not accessible any longer.

Required Associated Types§

source

type Item

Type of the stream elements

Required Methods§

source

fn next(&'a mut self) -> Option<Self::Item>

Advances the stream and returns the next item

Implementors§

source§

impl<'a, 'b> Stream<'b> for Stream<'a>

§

type Item = Result<&'b [u8], Error>