pub struct TestTypes {Show 22 fields
pub c: u8,
pub s: [u8; 10],
pub u8: u8,
pub u16: u16,
pub u32: u32,
pub u64: u64,
pub s8: i8,
pub s16: i16,
pub s32: i32,
pub s64: i64,
pub f: f32,
pub d: f64,
pub u8_array: [u8; 3],
pub u16_array: [u16; 3],
pub u32_array: [u32; 3],
pub u64_array: [u64; 3],
pub s8_array: [i8; 3],
pub s16_array: [i16; 3],
pub s32_array: [i32; 3],
pub s64_array: [i64; 3],
pub f_array: [f32; 3],
pub d_array: [f64; 3],
}Expand description
MAVLink TEST_TYPES message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Test all field types
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
TestTypes (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§c: u8MAVLink field c.
char
s: [u8; 10]MAVLink field s.
string
u8: u8MAVLink field u8.
uint8_t
u16: u16MAVLink field u16.
uint16_t
u32: u32MAVLink field u32.
uint32_t
u64: u64MAVLink field u64.
uint64_t
s8: i8MAVLink field s8.
int8_t
s16: i16MAVLink field s16.
int16_t
s32: i32MAVLink field s32.
int32_t
s64: i64MAVLink field s64.
int64_t
f: f32MAVLink field f.
float
d: f64MAVLink field d.
double
u8_array: [u8; 3]MAVLink field u8_array.
uint8_t_array
u16_array: [u16; 3]MAVLink field u16_array.
uint16_t_array
u32_array: [u32; 3]MAVLink field u32_array.
uint32_t_array
u64_array: [u64; 3]MAVLink field u64_array.
uint64_t_array
s8_array: [i8; 3]MAVLink field s8_array.
int8_t_array
s16_array: [i16; 3]MAVLink field s16_array.
int16_t_array
s32_array: [i32; 3]MAVLink field s32_array.
int32_t_array
s64_array: [i64; 3]MAVLink field s64_array.
int64_t_array
f_array: [f32; 3]MAVLink field f_array.
float_array
d_array: [f64; 3]MAVLink field d_array.
double_array
Implementations§
Source§impl TestTypes
impl TestTypes
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestTypes
impl<'de> Deserialize<'de> for TestTypes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for TestTypes
impl IntoPayload for TestTypes
Source§impl MessageSpec for TestTypes
impl MessageSpec for TestTypes
Source§impl MessageSpecStatic for TestTypes
impl MessageSpecStatic for TestTypes
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for TestTypes
impl NamedType for TestTypes
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl Type for TestTypes
impl Type for TestTypes
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.