pub fn create_topic(
    &self,
    domain_participant_weak: &DomainParticipantWeak,
    name: &str,
    type_desc: &str,
    qos: &QosPolicies,
    topic_kind: TopicKind,
  ) -> Result<Topic> {
    let topic = Topic::new(
      domain_participant_weak,
      name.to_string(),
      TypeDesc::new(type_desc),
      &qos,
      topic_kind,
    );
    Ok(topic)

    // TODO: refine
  }
// Topic creation. Data types should be handled as something (potentially) more structured than a String.
// NOTE: Here we are using &str for topic name. &str is Unicode string, whereas DDS specifes topic name
// to be a sequence of octets, which would be &[u8] in Rust. This may cause problems if there are topic names
// with non-ASCII characters. On the other hand, string handling with &str is easier in Rust.
Topic creation. Data types should be handled as something (potentially) more structured than a String.
NOTE: Here we are using &str for topic name. &str is Unicode string, whereas DDS specifes topic name
to be a sequence of octets, which would be &[u8] in Rust. This may cause problems if there are topic names
with non-ASCII characters. On the other hand, string handling with &str is easier in Rust.
Topic creation . Data types should be handled as something ( potentially ) more structured than a String . NOTE : Here we are using &str for topic name . &str is Unicode string whereas DDS specifes topic name to be a sequence of octets which would be & [ u8 ] in Rust . This may cause problems if there are topic names with non - ASCII characters . On the other hand string handling with &str is easier in Rust .
pub fn create_topic(
    &self,
    domain_participant_weak: &DomainParticipantWeak,
    name: &str,
    type_desc: &str,
    qos: &QosPolicies,
    topic_kind: TopicKind,
  ) -> Result<Topic> {
    let topic = Topic::new(
      domain_participant_weak,
      name.to_string(),
      TypeDesc::new(type_desc),
      &qos,
      topic_kind,
    );
    Ok(topic)
    // TODO: refine
  }
pub fn create_topic ( & self , domain_participant_weak : & DomainParticipantWeak , name : & str , type_desc : & str , qos : & QosPolicies , topic_kind : TopicKind , ) -> Result < Topic > { let topic = Topic :: new ( domain_participant_weak , name . to_string ( ) , TypeDesc :: new ( type_desc ) , & qos , topic_kind , ) ; Ok ( topic ) // TODO: refine }
Topic creation.
Topic creation .
&self
domain_participant_weak
&DomainParticipantWeak
name
&str
type_desc
&str
qos
&QosPolicies
topic_kind
TopicKind