pub struct Info {
pub state: State,
pub source_timestamp: Time,
pub instance_handle: InstanceHandle,
pub publication_handle: InstanceHandle,
pub disposed_generation_count: u32,
pub no_writers_generation_count: u32,
pub sample_rank: u32,
pub generation_rank: u32,
pub absolute_generation_rank: u32,
}Expand description
Metadata associated with a received sample.
Attached to every SampleOrKey and carries the metadata related to the
transmission of the sample.
The valid_data flag from the DDS specification is not present here as it
is encoded structurally in the type system via SampleOrKey. A
View::Sample variant guarantees valid data and a View::Key variant
guarantees the absence of it.
Fields§
§state: State§source_timestamp: TimeTimestamp at which the sample was written by the publisher.
instance_handle: InstanceHandleHandle identifying the instance this sample belongs to.
publication_handle: InstanceHandleHandle identifying the writer that published this sample.
disposed_generation_count: u32Number of times the instance was disposed before this sample was received.
no_writers_generation_count: u32Number of times the instance transitioned to the no-writers state before this sample was received.
sample_rank: u32Position of this sample relative to other samples for the same instance in the current read or take call.
generation_rank: u32Difference in generation count between this sample and the most recent sample for the same instance in the current read or take call.
absolute_generation_rank: u32Difference in generation count between this sample and the most recent sample for the same instance in the reader’s cache.