pub struct MagnetometerSample {
pub mag_id: String,
pub mag: [f64; 3],
pub stamp: Time,
pub frame_ref: FrameRef,
pub source_id: String,
pub seq: u64,
}Fields§
§mag_id: String§mag: [f64; 3]§stamp: Time§frame_ref: FrameRef§source_id: String§seq: u64Implementations§
Source§impl MagnetometerSample
impl MagnetometerSample
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§
Source§impl Clone for MagnetometerSample
impl Clone for MagnetometerSample
Source§impl Debug for MagnetometerSample
impl Debug for MagnetometerSample
Source§impl Default for MagnetometerSample
impl Default for MagnetometerSample
Source§impl PartialEq for MagnetometerSample
impl PartialEq for MagnetometerSample
impl StructuralPartialEq for MagnetometerSample
Auto Trait Implementations§
impl Freeze for MagnetometerSample
impl RefUnwindSafe for MagnetometerSample
impl Send for MagnetometerSample
impl Sync for MagnetometerSample
impl Unpin for MagnetometerSample
impl UnsafeUnpin for MagnetometerSample
impl UnwindSafe for MagnetometerSample
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