[][src]Struct rustdds::dds::No_Key_DataReader

pub struct No_Key_DataReader<'a, D: DeserializeOwned, DA: DeserializerAdapter<D> = CDRDeserializerAdapter<D>> { /* fields omitted */ }

DDS DataReader for no key topics.

Implementations

impl<'a, D: 'static, DA> DataReader<'a, D, DA> where
    D: DeserializeOwned,
    DA: DeserializerAdapter<D>, 
[src]

pub fn from_keyed(
    keyed: DataReader<'a, NoKeyWrapper<D>, SAWrapper<DA>>
) -> DataReader<'a, D, DA>
[src]

pub fn read(
    &mut self,
    max_samples: usize,
    read_condition: ReadCondition
) -> Result<Vec<DataSample<&D>>>
[src]

pub fn take(
    &mut self,
    max_samples: usize,
    read_condition: ReadCondition
) -> Result<Vec<DataSample<D>>>
[src]

pub fn read_next_sample(&mut self) -> Result<Option<DataSample<&D>>>[src]

pub fn take_next_sample(&mut self) -> Result<Option<DataSample<D>>>[src]

pub fn iterator(&mut self) -> Result<impl Iterator<Item = &D>>[src]

Produces an interator over the currently available NOT_READ samples. Yields only payload data, not SampleInfo metadata This is not called iter() because it takes a mutable reference to self.

pub fn conditional_iterator(
    &mut self,
    read_condition: ReadCondition
) -> Result<impl Iterator<Item = &D>>
[src]

Produces an interator over the samples filtered b ygiven condition. Yields only payload data, not SampleInfo metadata

pub fn into_iterator(&mut self) -> Result<impl Iterator<Item = D>>[src]

Produces an interator over the currently available NOT_READ samples. Yields only payload data, not SampleInfo metadata Removes samples from DataReader. Note! If the iterator is only partially consumed, all the samples it could have provided are still removed from the Datareader.

pub fn into_conditional_iterator(
    &mut self,
    read_condition: ReadCondition
) -> Result<impl Iterator<Item = D>>
[src]

Produces an interator over the samples filtered b ygiven condition. Yields only payload data, not SampleInfo metadata Note! If the iterator is only partially consumed, all the samples it could have provided are still removed from the Datareader.

pub fn get_requested_deadline_missed_status(
    &mut self
) -> Result<Option<RequestedDeadlineMissedStatus>>
[src]

Trait Implementations

impl<'a, D, DA> Entity for DataReader<'a, D, DA> where
    D: DeserializeOwned,
    DA: DeserializerAdapter<D>, 
[src]

impl<'a, D, DA> Evented for DataReader<'a, D, DA> where
    D: DeserializeOwned,
    DA: DeserializerAdapter<D>, 
[src]

impl<D, DA, '_> HasQoSPolicy for DataReader<'_, D, DA> where
    D: DeserializeOwned,
    DA: DeserializerAdapter<D>, 
[src]

Auto Trait Implementations

impl<'a, D, DA = CDRDeserializerAdapter<D>> !RefUnwindSafe for DataReader<'a, D, DA>

impl<'a, D, DA = CDRDeserializerAdapter<D>> !Send for DataReader<'a, D, DA>

impl<'a, D, DA = CDRDeserializerAdapter<D>> !Sync for DataReader<'a, D, DA>

impl<'a, D, DA> Unpin for DataReader<'a, D, DA> where
    D: Unpin,
    DA: Unpin

impl<'a, D, DA = CDRDeserializerAdapter<D>> !UnwindSafe for DataReader<'a, D, DA>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,