pub struct SensorDataReader {
pub data: Vec<u8>,
pub sensor_type: SensorType,
pub pos: usize,
}Expand description
Sensor data reader with timestamp synchronization and interpolation.
Fields§
§data: Vec<u8>Raw data buffer.
sensor_type: SensorTypeSensor type.
pos: usizeRead position.
Implementations§
Source§impl SensorDataReader
impl SensorDataReader
Sourcepub fn new(data: Vec<u8>, sensor_type: SensorType) -> Self
pub fn new(data: Vec<u8>, sensor_type: SensorType) -> Self
Create a new sensor data reader.
Sourcepub fn read_imu(&mut self) -> Option<ImuDataRecord>
pub fn read_imu(&mut self) -> Option<ImuDataRecord>
Read next IMU record.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SensorDataReader
impl RefUnwindSafe for SensorDataReader
impl Send for SensorDataReader
impl Sync for SensorDataReader
impl Unpin for SensorDataReader
impl UnsafeUnpin for SensorDataReader
impl UnwindSafe for SensorDataReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.