Skip to main content

DataWriterListener

Trait DataWriterListener 

Source
pub trait DataWriterListener: Send + Sync {
    // Provided methods
    fn on_offered_deadline_missed(
        &self,
        _writer: InstanceHandle,
        _status: OfferedDeadlineMissedStatus,
    ) { ... }
    fn on_offered_incompatible_qos(
        &self,
        _writer: InstanceHandle,
        _status: OfferedIncompatibleQosStatus,
    ) { ... }
    fn on_liveliness_lost(
        &self,
        _writer: InstanceHandle,
        _status: LivelinessLostStatus,
    ) { ... }
    fn on_publication_matched(
        &self,
        _writer: InstanceHandle,
        _status: PublicationMatchedStatus,
    ) { ... }
}
Expand description

DataWriterListener — Spec §2.2.2.4.4 + §2.2.4.2.4.

4 callbacks: on_offered_deadline_missed, on_offered_incompatible_qos, on_liveliness_lost, on_publication_matched.

Provided Methods§

Source

fn on_offered_deadline_missed( &self, _writer: InstanceHandle, _status: OfferedDeadlineMissedStatus, )

Spec §2.2.4.2.4.1 — the writer did not honor the offered DEADLINE promise.

Source

fn on_offered_incompatible_qos( &self, _writer: InstanceHandle, _status: OfferedIncompatibleQosStatus, )

Spec §2.2.4.2.4.2 — a matched reader has incompatible requested QoS.

Source

fn on_liveliness_lost( &self, _writer: InstanceHandle, _status: LivelinessLostStatus, )

Spec §2.2.4.2.4.3 — the writer was declared not_alive from the readers’ point of view.

Source

fn on_publication_matched( &self, _writer: InstanceHandle, _status: PublicationMatchedStatus, )

Spec §2.2.4.2.4.4 — a new compatible reader matched (or one disappeared).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§