pub struct DevFieldRegistry { /* private fields */ }Expand description
Registry of developer field schemas, populated from developer_data_id and
field_description messages flowing through the typed decoder.
Implementations§
Source§impl DevFieldRegistry
impl DevFieldRegistry
Sourcepub fn register_field(
&mut self,
developer_data_index: u8,
field_definition_number: u8,
field_name: String,
fit_base_type_id: u8,
scale: Option<f64>,
offset: Option<f64>,
units: Option<String>,
)
pub fn register_field( &mut self, developer_data_index: u8, field_definition_number: u8, field_name: String, fit_base_type_id: u8, scale: Option<f64>, offset: Option<f64>, units: Option<String>, )
Register a field description. Called when a field_description message
(global_mesg_num=206) flows through the typed decoder.
Trait Implementations§
Source§impl Clone for DevFieldRegistry
impl Clone for DevFieldRegistry
Source§fn clone(&self) -> DevFieldRegistry
fn clone(&self) -> DevFieldRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DevFieldRegistry
impl Debug for DevFieldRegistry
Source§impl Default for DevFieldRegistry
impl Default for DevFieldRegistry
Source§fn default() -> DevFieldRegistry
fn default() -> DevFieldRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DevFieldRegistry
impl RefUnwindSafe for DevFieldRegistry
impl Send for DevFieldRegistry
impl Sync for DevFieldRegistry
impl Unpin for DevFieldRegistry
impl UnsafeUnpin for DevFieldRegistry
impl UnwindSafe for DevFieldRegistry
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