pub struct Topic<T> { /* private fields */ }Expand description
A DDS topic (DDS 1.4, 2.2.2.3.2): a name and the type of its samples,
which are of Rust type T: a TopicType the
program was built with, or DynamicData of a
type known at run time
(DomainParticipant::create_dynamic_topic).
Writers and readers match by topic name and type name, or by type
assignability for registered types.
Implementations§
Source§impl<T> Topic<T>
impl<T> Topic<T>
Sourcepub fn inconsistent_topic_status(&self) -> InconsistentTopicStatus
pub fn inconsistent_topic_status(&self) -> InconsistentTopicStatus
The INCONSISTENT_TOPIC status (DDS 1.4, 2.2.4.1): the writers and
readers of this topic found in other participants whose types are
not consistent with those of the local ones. Reading it resets
total_count_change.
Sourcepub fn set_listener(
&self,
listener: impl TopicListener + 'static,
mask: StatusMask,
)
pub fn set_listener( &self, listener: impl TopicListener + 'static, mask: StatusMask, )
Sets the listener of the topic (set_listener), replacing any
earlier one: it is called for INCONSISTENT_TOPIC when mask has
it. The topics of one name in a participant share their listener.
Sourcepub fn clear_listener(&self)
pub fn clear_listener(&self)
Removes the listener of the topic.