pub struct MultiTopic<T: DdsType> { /* private fields */ }Expand description
MultiTopic<T> — spec §2.2.2.3.4 (DDS 1.4 optional feature).
A MultiTopic combines several underlying topics into a single
TopicDescription via a subscription_expression (SQL subset). The
resulting type T is user-defined; the underlying topics may have
different types.
Cross-topic sample routing: the join operator is live via
hash_join_two and Self::evaluate_joined. The
subscription_expression references fields as
<topic_name>.<field_path> (dotted), and JoinedRow dispatches
the lookups to the matching topic sources.
Implementations§
Source§impl<T: DdsType> MultiTopic<T>
impl<T: DdsType> MultiTopic<T>
Sourcepub fn get_subscription_expression(&self) -> &str
pub fn get_subscription_expression(&self) -> &str
Spec §2.2.2.3.4.4 get_subscription_expression.
Sourcepub fn get_expression_parameters(&self) -> Vec<String>
pub fn get_expression_parameters(&self) -> Vec<String>
Spec §2.2.2.3.4.5 get_expression_parameters.
Sourcepub fn set_expression_parameters(&self, params: Vec<String>) -> Result<()>
pub fn set_expression_parameters(&self, params: Vec<String>) -> Result<()>
Spec §2.2.2.3.4.6 set_expression_parameters.
§Errors
BadParameter if a referenced %N parameter is outside the new
vec; PreconditionNotMet on lock poisoning.
Spec §2.2.2.3.4.3 get_related_topic (the PSM returns a sequence
— we return the names).
Trait Implementations§
Source§impl<T: DdsType> Clone for MultiTopic<T>
impl<T: DdsType> Clone for MultiTopic<T>
Source§impl<T: DdsType> Debug for MultiTopic<T>
impl<T: DdsType> Debug for MultiTopic<T>
Source§impl<T: DdsType> TopicDescription for MultiTopic<T>
impl<T: DdsType> TopicDescription for MultiTopic<T>
Source§fn get_type_name(&self) -> &str
fn get_type_name(&self) -> &str
"std_msgs::msg::String").
Spec §2.2.2.3.1 get_type_name.Source§fn get_participant(&self) -> &DomainParticipant
fn get_participant(&self) -> &DomainParticipant
get_participant.