Type Alias MmapCapture

Source
pub type MmapCapture<S> = MmapIO<S, Capture>;

Aliased Type§

pub struct MmapCapture<S> { /* private fields */ }

Implementations§

Source§

impl<S> MmapCapture<S>

Source

pub fn iter(&mut self) -> CaptureIter<'_, S>

Read samples from the kernel ringbuffer.

When the iterator is dropped or depleted, the read samples will be committed, i e, the kernel can then write data to the location again. So do this ASAP.