pub trait DataReader: Send + Sync {
// Required methods
fn take(&self) -> Result<Vec<ReceivedSample>>;
fn read(&self) -> Result<Vec<ReceivedSample>>;
fn topic(&self) -> &str;
fn type_name(&self) -> &str;
}Expand description
Abstract data reader interface
Required Methods§
Sourcefn take(&self) -> Result<Vec<ReceivedSample>>
fn take(&self) -> Result<Vec<ReceivedSample>>
Take all available samples (removes from reader cache)
Sourcefn read(&self) -> Result<Vec<ReceivedSample>>
fn read(&self) -> Result<Vec<ReceivedSample>>
Read samples without removing from cache