Struct fit_rust::protocol::DataMessage
source · pub struct DataMessage {
pub message_type: MessageType,
pub values: Vec<DataField>,
}
Fields§
§message_type: MessageType
§values: Vec<DataField>
Implementations§
Trait Implementations§
source§impl BinRead for DataMessage
impl BinRead for DataMessage
§type Args<'__binrw_generated_args_lifetime> = (&'__binrw_generated_args_lifetime FitDefinitionMessage,)
type Args<'__binrw_generated_args_lifetime> = (&'__binrw_generated_args_lifetime FitDefinitionMessage,)
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§impl Clone for DataMessage
impl Clone for DataMessage
source§fn clone(&self) -> DataMessage
fn clone(&self) -> DataMessage
Returns a copy of the value. Read more
1.0.0 · 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 DataMessage
impl Debug for DataMessage
source§impl PartialEq for DataMessage
impl PartialEq for DataMessage
source§fn eq(&self, other: &DataMessage) -> bool
fn eq(&self, other: &DataMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataMessage
Auto Trait Implementations§
impl RefUnwindSafe for DataMessage
impl Send for DataMessage
impl Sync for DataMessage
impl Unpin for DataMessage
impl UnwindSafe for DataMessage
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