pub struct ImuSample {
pub imu_id: String,
pub accel: [f64; 3],
pub gyro: [f64; 3],
pub stamp: Time,
pub source_id: String,
pub seq: u64,
}Fields§
§imu_id: String§accel: [f64; 3]§gyro: [f64; 3]§stamp: Time§source_id: String§seq: u64Implementations§
Source§impl ImuSample
impl ImuSample
pub fn encode(&self, w: &mut Writer) -> Result<(), WireError>
pub fn decode(r: &mut Reader<'_>) -> Result<Self, WireError>
pub fn key_holder_be(&self) -> Result<Vec<u8>, WireError>
pub fn key_from_holder_be(r: &mut Reader<'_>) -> Result<Self, WireError>
pub fn key_hash(&self) -> Result<[u8; 16], WireError>
Trait Implementations§
impl StructuralPartialEq for ImuSample
Auto Trait Implementations§
impl Freeze for ImuSample
impl RefUnwindSafe for ImuSample
impl Send for ImuSample
impl Sync for ImuSample
impl Unpin for ImuSample
impl UnsafeUnpin for ImuSample
impl UnwindSafe for ImuSample
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