Skip to main content

Module sample

Module sample 

Source
Expand description

Types representing received DDS samples and their associated metadata.

A received sample is either a full data sample of type T or a key-only sample carrying the instance key T::Key.

This distinction arises in DDS when an instance is disposed or unregistered, the reader receives a notification carrying only the key rather than a full payload.

Samples are obtained via Reader::peek, Reader::read, and Reader::take, or their equivalents on ReadCondition and QueryCondition.

Structs§

Info
Metadata associated with a received sample.
SampleOrKey
A received sample, which is either a full payload of type T or a key-only payload carrying T::Key.

Enums§

View
A borrowed view into a SampleOrKey for pattern matching.