Trait CaptureBufferReader

Source
pub trait CaptureBufferReader {
    // Required method
    fn get_next_capture_period<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        ex: &'life1 Executor,
    ) -> Pin<Box<dyn Future<Output = Result<AsyncCaptureBuffer<'_>, BoxError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn start(&mut self) -> Result<(), BoxError> { ... }
    fn stop(&mut self) -> Result<(), BoxError> { ... }
}
Expand description

Trait to wrap system specific helpers for reading from the start point capture buffer.

Required Methods§

Source

fn get_next_capture_period<'life0, 'life1, 'async_trait>( &'life0 mut self, ex: &'life1 Executor, ) -> Pin<Box<dyn Future<Output = Result<AsyncCaptureBuffer<'_>, BoxError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn start(&mut self) -> Result<(), BoxError>

Starts the underlying capture stream. Default implementation is a no-op.

Must return promptly; see AsyncCaptureBufferStream::start().

Source

fn stop(&mut self) -> Result<(), BoxError>

Stops the underlying capture stream. Default implementation is a no-op.

Must return promptly; see AsyncCaptureBufferStream::stop().

Implementors§