Skip to main content

MultiTopic

Struct MultiTopic 

Source
pub struct MultiTopic<T: DdsType> { /* private fields */ }
Expand description

MultiTopic<T> — Spec §2.2.2.3.4 (DDS 1.4 optionales Feature).

Eine MultiTopic kombiniert mehrere Underlying-Topics in einer einzigen TopicDescription via subscription_expression (SQL- Subset). Der Resulting-Type T ist User-definiert; die Underlying-Topics koennen unterschiedliche Types haben.

Cross-Topic-Sample-Routing: Der Join-Operator ist ueber hash_join_two und Self::evaluate_joined live. Die subscription_expression referenziert Felder als <topic_name>.<field_path> (dotted), und JoinedRow dispatched die Lookups an die matchenden Topic-Quellen.

Implementations§

Source§

impl<T: DdsType> MultiTopic<T>

Source

pub fn get_subscription_expression(&self) -> &str

Spec §2.2.2.3.4.4 get_subscription_expression.

Source

pub fn get_expression_parameters(&self) -> Vec<String>

Spec §2.2.2.3.4.5 get_expression_parameters.

Source

pub fn set_expression_parameters(&self, params: Vec<String>) -> Result<()>

Spec §2.2.2.3.4.6 set_expression_parameters.

§Errors

BadParameter wenn ein referenzierter %N-Parameter ausserhalb des neuen Vec liegt; PreconditionNotMet bei Lock-Poisoning.

Spec §2.2.2.3.4.3 get_related_topic (PSM gibt eine Sequence zurueck — wir liefern die Namen).

Source

pub fn evaluate_joined(&self, row: &JoinedRow<'_>) -> Result<bool>

Wertet die subscription_expression gegen ein JoinedRow aus (Cross-Topic-Predicate). Spec §2.2.2.3.4.

§Errors

PreconditionNotMet bei Lock-Poisoning oder SQL-Eval-Fehler.

Trait Implementations§

Source§

impl<T: DdsType> Clone for MultiTopic<T>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: DdsType> Debug for MultiTopic<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: DdsType> TopicDescription for MultiTopic<T>

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.

Auto Trait Implementations§

§

impl<T> Freeze for MultiTopic<T>

§

impl<T> !RefUnwindSafe for MultiTopic<T>

§

impl<T> Send for MultiTopic<T>
where T: Send,

§

impl<T> Sync for MultiTopic<T>
where T: Sync,

§

impl<T> Unpin for MultiTopic<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for MultiTopic<T>

§

impl<T> !UnwindSafe for MultiTopic<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.