Struct rustdds::Topic [−][src]
pub struct Topic { /* fields omitted */ }
Expand description
DDS Topic
DDS Specification, Section 2.2.1.2 Conceptual outline:
Topic objects conceptually fit between publications and subscriptions. Publications must be known in such a way that subscriptions can refer to them unambiguously. A Topic is meant to fulfill that purpose: it associates a name (unique in the > domain), a data-type, and QoS related to the data itself.
Topics can be created (or found) using a DomainParticipant
.
Examples
use rustdds::dds::DomainParticipant;
use rustdds::dds::qos::QosPolicyBuilder;
use rustdds::dds::Topic;
use rustdds::dds::data_types::TopicKind;
let domain_participant = DomainParticipant::new(0).unwrap();
let qos = QosPolicyBuilder::new().build();
let topic = domain_participant
.create_topic("some_topic".to_string(), "SomeType".to_string(), &qos, TopicKind::WithKey)
.unwrap();
Implementations
Trait Implementations
Implements some default topic interfaces functions defined in DDS spec
Gets DomainParticipant if it is still alive.
Auto Trait Implementations
impl RefUnwindSafe for Topic
impl UnwindSafe for Topic
Blanket Implementations
Mutably borrows from an owned value. Read more