Skip to main content

Crate rustorb_dds_corba

Crate rustorb_dds_corba 

Source
Expand description

CORBA TypeCodes and anys (rustorb) as DDS-XTypes types and DynamicData (rustorb-dds), and back.

A TypeCode says less than a TypeObject: it has no extensibility, no @key, @optional or member IDs. The rules (docs/corba.md):

  • structs and unions take the extensibility of Options (appendable by default, the default of IDL 4), enums are final
  • the key members of a struct are those Options::key names
  • member IDs are sequential from 0, in declaration order (@autoid(SEQUENTIAL)), the members of a union too
  • the qualified name comes from the repository ID (IDL:A/B/C:1.0 is A::B::C; leading parts with a dot, from #pragma prefix, are left out), and back (A::B::C is IDL:A/B/C:1.0)
  • an enumerator’s value is its position
  • nested arrays (long m[2][3]) are one array of several dimensions

TypeCodes of kinds DDS-XTypes has no type for (any, object references, valuetypes, fixed, exceptions, TypeCode…) and recursive types are Error::Unsupported, and so are, the other way, map, bitmask, int8 and optional members.

Re-exports§

pub use rustorb_core;
pub use rustorb_xtypes;

Structs§

Options
What dynamic_type cannot read from a TypeCode: extensibility and keys, given by the qualified names of the types (Keyed::Shape).

Enums§

Error
Errors of the conversions.

Functions§

any
data as an any of type tc, the TypeCode type_code makes from the type of data (or one with the same names and shape).
dynamic_data
The value of any as a value of ty, a type dynamic_type made from the TypeCode of any (or one with the same names and shape). Members of ty the TypeCode does not have keep their default values.
dynamic_type
The DDS-XTypes type of tc, by the rules of the crate documentation and options.
type_code
The TypeCode of ty, by the rules of the crate documentation: extensibility, keys and member IDs are left out.

Type Aliases§

Result
The result of the conversions.