#[repr(C)]pub struct PamojaMavlinkFieldInfo {
pub name: *const c_char,
pub type_name: *const c_char,
pub field_type: u32,
pub array_len: u8,
pub extension: u8,
pub offset: usize,
}Expand description
One field of a message shape, as read back from a schema.
Both names point into the schema they came from and stay valid until it is released, so a caller reads them in place rather than freeing them.
Fields§
§name: *const c_charThe field name as the dialect writes it, such as custom_mode.
type_name: *const c_charThe field’s type name as the dialect writes it, such as uint32_t.
field_type: u32The field’s type, one of the PAMOJA_MAVLINK_FIELD_* codes.
array_len: u8The element count for an array field, or 0 for a scalar.
extension: u81 for a MAVLink 2 extension field, 0 for a base field.
offset: usizeThe field’s byte offset within the payload.
Trait Implementations§
Source§impl Clone for PamojaMavlinkFieldInfo
impl Clone for PamojaMavlinkFieldInfo
Source§fn clone(&self) -> PamojaMavlinkFieldInfo
fn clone(&self) -> PamojaMavlinkFieldInfo
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 moreimpl Copy for PamojaMavlinkFieldInfo
Auto Trait Implementations§
impl !Send for PamojaMavlinkFieldInfo
impl !Sync for PamojaMavlinkFieldInfo
impl Freeze for PamojaMavlinkFieldInfo
impl RefUnwindSafe for PamojaMavlinkFieldInfo
impl Unpin for PamojaMavlinkFieldInfo
impl UnsafeUnpin for PamojaMavlinkFieldInfo
impl UnwindSafe for PamojaMavlinkFieldInfo
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