Skip to main content

ContentFilteredTopic

Struct ContentFilteredTopic 

Source
pub struct ContentFilteredTopic<T> { /* private fields */ }
Expand description

A topic whose readers get only the samples of its related topic that pass a filter (DDS 1.4, 2.2.2.3.3): a filter expression (DDS 1.4, Annex B, see ContentFilter) with parameters, which can change.

Made by DomainParticipant::create_contentfilteredtopic. Its readers announce the filter (DDSI-RTPS 2.5, 8.7.3.1), so that remote writers that can filter do, and filter the samples they get themselves.

Implementations§

Source§

impl<T> ContentFilteredTopic<T>

Source

pub fn name(&self) -> &str

The name of the content filtered topic.

Source

pub fn type_name(&self) -> &str

The type name, that of the related topic.

Source

pub fn related_topic(&self) -> &Topic<T>

The related topic (get_related_topic).

Source

pub fn filter_expression(&self) -> String

The filter expression.

Source

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

The expression parameters: those of the last successful set_expression_parameters, or those it was made with.

Source

pub fn set_expression_parameters(&self, parameters: &[String]) -> Result<()>

Changes the expression parameters: the readers filter with them from now on, and announce them. Fails with Error::Dynamic when there are fewer than the expression uses.

Trait Implementations§

Source§

impl<T> Debug for ContentFilteredTopic<T>

Source§

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

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

impl<T> TopicDescription<T> for ContentFilteredTopic<T>

Source§

fn get_name(&self) -> &str

The name.
Source§

fn get_type_name(&self) -> &str

The type name.

Auto Trait Implementations§

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.