Skip to main content

Module qos

Module qos 

Source
Expand description

The QoS policies that endpoint discovery reads and matches on.

The policies and their default values come from the DDS 1.4 specification (2.2.3 and the IDL in 2.3.3). How they are written in a parameter list comes from DDSI-RTPS 2.5, 9.6.3 (Tables 9.18 and 9.19).

RELIABILITY, DURABILITY, DEADLINE, LIVELINESS and PARTITION are modelled (rustorb-dds#6, rustorb-dds#19). Other policies sent by remote endpoints are skipped.

Structs§

DurabilityService
DurabilityServiceQosPolicy (DDS 1.4, 2.2.3.5): the HISTORY and RESOURCE_LIMITS of the service that keeps the samples of a TRANSIENT or PERSISTENT writer, and when it drops a disposed instance. The counts are longs, -1 being LENGTH_UNLIMITED.
Liveliness
LivelinessQosPolicy (DDS 1.4, 2.2.3.11).
QosPolicyId
QosPolicyId_t (DDS 1.4, 2.3.3): which policy made a writer and a reader incompatible.
Reliability
ReliabilityQosPolicy.
RxO
The policies an offering writer and a requesting reader set.

Enums§

DurabilityKind
DurabilityQosPolicyKind, in the order of the DDS enum, which is also the order used to compare an offered and a requested kind (DDS 1.4, 2.2.3.4).
LivelinessKind
LivelinessQosPolicyKind, in the order of the DDS enum, which is also the order used to compare an offered and a requested kind (DDS 1.4, 2.2.3.11).
ReliabilityKind
ReliabilityQosPolicyKind. On the wire it is ReliabilityKind_t: BEST_EFFORT = 1, RELIABLE = 2 (DDSI-RTPS 2.5, 9.3.2 and Table 9.18 note 3), not the DDS enum ordinal.

Functions§

incompatible_policies
The policies for which what a writer offers does not satisfy what a reader requests (the “requested/offered” rules of DDS 1.4, 2.2.3): RELIABILITY and DURABILITY kinds, offered >= requested; DEADLINE, offered period <= requested; LIVELINESS, offered kind >= requested and offered lease <= requested. Empty when they are compatible.
partitions_match
Whether two PARTITION lists share a partition (DDS 1.4, 2.2.3.13). An empty list means the default partition, "".