pub struct Topic { /* private fields */ }
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::*;
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§
source§impl HasQoSPolicy for Topic
impl HasQoSPolicy for Topic
fn qos(&self) -> QosPolicies
source§impl PartialEq for Topic
impl PartialEq for Topic
source§impl TopicDescription for Topic
impl TopicDescription for Topic
Implements some default topic interfaces functions defined in DDS spec
source§fn participant(&self) -> Option<DomainParticipant>
fn participant(&self) -> Option<DomainParticipant>
Gets DomainParticipant if it is still alive.
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more