pub struct SampleInfo {Show 14 fields
pub sample_state: SampleState,
pub view_state: ViewState,
pub instance_state: InstanceState,
pub valid_data: bool,
pub source_timestamp: Option<Time>,
pub instance_handle: InstanceHandle,
pub writer: Guid,
pub sequence_number: SequenceNumber,
pub related_sample_identity: Option<SampleIdentity>,
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
Information about a sample (DDS 1.4 SampleInfo, 2.2.2.5.5).
Fields§
§sample_state: SampleStateWhether it was read before.
view_state: ViewStateThe view state of its instance when the read or take was called.
instance_state: InstanceStateThe state of its instance when the read or take was called.
valid_data: boolWhether the sample has data. Samples without data tell of a change in the state of the instance (2.2.2.5.1.4).
source_timestamp: Option<Time>When the writer wrote it, if the writer said
(source_timestamp).
instance_handle: InstanceHandleIts instance.
writer: GuidThe writer that sent it (publication_handle).
sequence_number: SequenceNumberIts sequence number from that writer.
The sample this one answers, when its writer said
(PID_RELATED_SAMPLE_IDENTITY, DDS-RPC 1.0, 7.8.2): the request
of a reply.
disposed_generation_count: u32How many times the instance went from disposed to alive, when the sample arrived.
no_writers_generation_count: u32How many times the instance went from no writers to alive, when the sample arrived.
sample_rank: u32How many samples of the same instance follow this one in the returned collection.
generation_rank: u32Generations between this sample and the most recent one of its instance in the collection.
absolute_generation_rank: u32Generations between this sample and the most recent one of its instance received.