Skip to main content

dds_dynamic_member_descriptor

Struct dds_dynamic_member_descriptor 

Source
#[repr(C)]
pub struct dds_dynamic_member_descriptor { pub name: *const c_char, pub id: u32, pub type_: dds_dynamic_type_spec_t, pub default_value: *mut c_char, pub index: u32, pub num_labels: u32, pub labels: *mut i32, pub default_label: bool, }
Expand description

@brief Dynamic Type Member descriptor @ingroup dynamic_type

Structure that holds the properities for adding a member to a dynamic type. Depending on the member type, different fields apply and are required.

Fields§

§name: *const c_char

< Name of the member, required

§id: u32

< Identifier of the member, applicable for struct and union members. DDS_DYNAMIC_MEMBER_ID_AUTO can be used to indicate the next available id (current max + 1) should be used.

§type_: dds_dynamic_type_spec_t

< Member type, required for struct and union members.

§default_value: *mut c_char

< Default value for the member

§index: u32

< Member index, applicable for struct and union members. DDS_DYNAMIC_MEMBER_INDEX_START and DDS_DYNAMIC_MEMBER_INDEX_END can be used to add a member as first or last member in the parent type.

§num_labels: u32

< Number of labels, required for union members in case not default_label

§labels: *mut i32

< Labels for a union member, 1..n required for union members in case not default_label

§default_label: bool

< Is default union member

Trait Implementations§

Source§

impl Clone for dds_dynamic_member_descriptor

Source§

fn clone(&self) -> dds_dynamic_member_descriptor

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for dds_dynamic_member_descriptor

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for dds_dynamic_member_descriptor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.