Struct resol_vbus::DataSet [−][src]
Expand description
A DataSet
contains a set of unique (non-identical) Data
values.
Examples
use std::io::Read;
use resol_vbus::{DataSet, RecordingReader, Result};
fn print_data_ids<R: Read>(r: R) -> Result<()> {
let mut rr = RecordingReader::new(r);
let mut cumultative_data_set = DataSet::new();
while let Some(data_set) = rr.read_data_set()? {
let timestamp = data_set.timestamp;
cumultative_data_set.add_data_set(data_set);
println!("{}:", timestamp);
for data in cumultative_data_set.iter() {
println!(" - {}", data.id_string());
}
}
Ok(())
}
Fields
timestamp: DateTime<Utc>
The timestamp that corresponds to the contained set of Data
values.
Implementations
Construct a DataSet
from a list of Data
values.
Return the Data
values contained in this DataSet
.
Add all Data
values from one DataSet
into another.
Remove all Data
values.
Remove Data
values with timestamps older than min_timestamp
.
Find all Packet
values and set their frame_count
to zero effectively hiding
their frame_data
payload.
Find all Packet
values with timestamps older than min_timestamp
and set their
frame_count
to zero effectively hiding their frame_data
payload.
Sort the Data
values contained in this DataSet
.
Sort the Data
values contained in this DataSet
by a list of known PacketId
values.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DataSet
impl UnwindSafe for DataSet
Blanket Implementations
Mutably borrows from an owned value. Read more