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>
impl<T> ContentFilteredTopic<T>
The related topic (get_related_topic).
Sourcepub fn filter_expression(&self) -> String
pub fn filter_expression(&self) -> String
The filter expression.
Sourcepub fn expression_parameters(&self) -> Vec<String>
pub fn expression_parameters(&self) -> Vec<String>
The expression parameters: those of the last successful
set_expression_parameters,
or those it was made with.
Sourcepub fn set_expression_parameters(&self, parameters: &[String]) -> Result<()>
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>
impl<T> Debug for ContentFilteredTopic<T>
Source§impl<T> TopicDescription<T> for ContentFilteredTopic<T>
impl<T> TopicDescription<T> for ContentFilteredTopic<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ContentFilteredTopic<T>
impl<T> !UnwindSafe for ContentFilteredTopic<T>
impl<T> Forget for ContentFilteredTopic<T>
impl<T> Freeze for ContentFilteredTopic<T>where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Shared> is !null: Freeze,
PhantomData<ArcInner<Shared>>: Freeze,
*const ArcInner<dyn SampleType<T>> is !null: Freeze,
PhantomData<ArcInner<dyn SampleType<T>>>: Freeze,
*const ArcInner<Mutex<FilterState>> is !null: Freeze,
PhantomData<ArcInner<Mutex<FilterState>>>: Freeze,
impl<T> Move for ContentFilteredTopic<T>
impl<T> Send for ContentFilteredTopic<T>
impl<T> Sync for ContentFilteredTopic<T>
impl<T> Unpin for ContentFilteredTopic<T>
impl<T> UnsafeUnpin for ContentFilteredTopic<T>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Shared> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared>>: UnsafeUnpin,
*const ArcInner<dyn SampleType<T>> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SampleType<T>>>: UnsafeUnpin,
*const ArcInner<Mutex<FilterState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<FilterState>>>: UnsafeUnpin,
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