pub trait BufferReaderHost: Send + Any + Debug {
    // Required methods
    fn as_any(&mut self) -> &mut dyn Any;
    fn bytes(&mut self) -> (*const u8, usize, Vec<ItemTag>);
    fn consume(&mut self, amount: usize);
    fn notify_finished<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait
; fn finish(&mut self); fn finished(&self) -> bool; }

Required Methods§

source

fn as_any(&mut self) -> &mut dyn Any

source

fn bytes(&mut self) -> (*const u8, usize, Vec<ItemTag>)

source

fn consume(&mut self, amount: usize)

source

fn notify_finished<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,

source

fn finish(&mut self)

source

fn finished(&self) -> bool

Implementors§

source§

impl BufferReaderHost for futuresdr::runtime::buffer::circular::Reader

source§

impl BufferReaderHost for futuresdr::runtime::buffer::slab::Reader