pub enum DataReaderStatus {
    SampleRejected {
        count: CountWithChange,
        last_reason: SampleRejectedStatusKind,
    },
    LivelinessChanged {
        alive_total: CountWithChange,
        not_alive_total: CountWithChange,
    },
    RequestedDeadlineMissed {
        count: CountWithChange,
    },
    RequestedIncompatibleQos {
        count: CountWithChange,
        last_policy_id: QosPolicyId,
        writer: GUID,
        requested_qos: Box<QosPolicies>,
        offered_qos: Box<QosPolicies>,
    },
    SampleLost {
        count: CountWithChange,
    },
    SubscriptionMatched {
        total: CountWithChange,
        current: CountWithChange,
        writer: GUID,
    },
}

Variants§

§

SampleRejected

Sample was rejected, because resource limits would have been exceeded.

§

LivelinessChanged

Fields

§alive_total: CountWithChange
§not_alive_total: CountWithChange

Remote Writer has become active or inactive.

§

RequestedDeadlineMissed

Fields

Deadline requested by this DataReader was missed.

§

RequestedIncompatibleQos

Fields

§last_policy_id: QosPolicyId
§writer: GUID
§requested_qos: Box<QosPolicies>
§offered_qos: Box<QosPolicies>

This DataReader has requested a QoS policy that is incompatible with what is offered.

§

SampleLost

Fields

A sample has been lost (never received). TODO: Implement this.

  • Check that the following interpretation is correct:
  • For a BEST_EFFORT reader: Whenever we skip ahead in SequenceNumber, possibly because a message is lost, or messages arrive out of order.
  • For a RELIABLE reader: Whenever we skip ahead in SequenceNumbers that are delivered via DataReader. The reason may be that we receive a HEARTBEAT or GAP submessage indicating that some samples we are expecting are not available.
§

SubscriptionMatched

Fields

§writer: GUID

The DataReader has found a DataWriter that matches the Topic and has compatible QoS, or has ceased to be matched with a DataWriter that was previously considered to be matched.

Trait Implementations§

source§

impl Clone for DataReaderStatus

source§

fn clone(&self) -> DataReaderStatus

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for DataReaderStatus

source§

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

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

impl<'a, D, DA> StatusEvented<'a, DataReaderStatus, SimpleDataReaderEventStream<'a, D, DA>> for DataReader<D, DA>
where D: Keyed + 'static, DA: DeserializerAdapter<D>,

source§

impl<'a, D, DA> StatusEvented<'a, DataReaderStatus, SimpleDataReaderEventStream<'a, D, DA>> for SimpleDataReader<D, DA>
where D: Keyed, DA: DeserializerAdapter<D>,

source§

impl<'a, D, DA> StatusEvented<'a, DataReaderStatus, SimpleDataReaderEventStream<'a, NoKeyWrapper<D>, DAWrapper<DA>>> for DataReader<D, DA>
where D: 'static, DA: DeserializerAdapter<D>,

source§

fn as_status_evented(&mut self) -> &dyn Evented

source§

fn as_status_source(&mut self) -> &mut dyn Source

source§

fn as_async_status_stream( &'a self ) -> SimpleDataReaderEventStream<'a, NoKeyWrapper<D>, DAWrapper<DA>>

source§

fn try_recv_status(&self) -> Option<DataReaderStatus>

source§

impl<'a, D, DA> StatusEvented<'a, DataReaderStatus, SimpleDataReaderEventStream<'a, NoKeyWrapper<D>, DAWrapper<DA>>> for SimpleDataReader<D, DA>
where D: 'static, DA: DeserializerAdapter<D>,

source§

fn as_status_evented(&mut self) -> &dyn Evented

source§

fn as_status_source(&mut self) -> &mut dyn Source

source§

fn as_async_status_stream( &'a self ) -> SimpleDataReaderEventStream<'a, NoKeyWrapper<D>, DAWrapper<DA>>

source§

fn try_recv_status(&self) -> Option<DataReaderStatus>

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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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.
source§

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

source§

fn vzip(self) -> V