Skip to main content

TopicDescription

Trait TopicDescription 

Source
pub trait TopicDescription {
    // Required methods
    fn get_type_name(&self) -> &str;
    fn get_name(&self) -> &str;
    fn get_participant(&self) -> &DomainParticipant;
}
Expand description

TopicDescription-Trait — Base-Interface fuer alles, woraus ein DataReader (typed via T) Samples beziehen kann.

Spec-Referenz: OMG DDS 1.4 §2.2.2.3.1 “TopicDescription is the most abstract description of a topic. It encapsulates the information that is common to all the kinds of topic that can be used: Topic, ContentFilteredTopic, MultiTopic.”

Der Trait ist object-safe — wir wollen ihn als &dyn TopicDescription aus lookup_topicdescription und find_topic zurueckgeben koennen.

Required Methods§

Source

fn get_type_name(&self) -> &str

Type-Name (z.B. "std_msgs::msg::String"). Spec §2.2.2.3.1 get_type_name.

Source

fn get_name(&self) -> &str

Topic-Name (z.B. "ChatterTopic"). Spec §2.2.2.3.1 get_name.

Source

fn get_participant(&self) -> &DomainParticipant

Owning Participant. Spec §2.2.2.3.1 get_participant.

Implementors§