pub struct Subscriber { /* private fields */ }Implementations§
Source§impl Subscriber
impl Subscriber
pub fn new(participant: dds_entity_t) -> DdsResult<Self>
pub fn with_qos(participant: dds_entity_t, qos: Option<&Qos>) -> DdsResult<Self>
pub fn with_listener( participant: dds_entity_t, listener: &Listener, ) -> DdsResult<Self>
pub fn with_qos_and_listener( participant: dds_entity_t, qos: Option<&Qos>, listener: Option<&Listener>, ) -> DdsResult<Self>
pub fn create_reader<T: DdsType>( &self, topic: &Topic<T>, ) -> DdsResult<DataReader<T>>
pub fn create_reader_with_qos<T: DdsType>( &self, topic: &Topic<T>, qos: &Qos, ) -> DdsResult<DataReader<T>>
pub fn notify_readers(&self) -> DdsResult<()>
Sourcepub fn begin_coherent(&self) -> DdsResult<()>
pub fn begin_coherent(&self) -> DdsResult<()>
Begin coherent access on this subscriber.
Coherent access groups a set of data changes so that they are made available to readers as an atomic set.
Sourcepub fn end_coherent(&self) -> DdsResult<()>
pub fn end_coherent(&self) -> DdsResult<()>
End coherent access on this subscriber.
Must be paired with a prior begin_coherent call.
Trait Implementations§
Source§impl DdsEntity for Subscriber
impl DdsEntity for Subscriber
fn entity(&self) -> dds_entity_t
fn get_parent(&self) -> DdsResult<dds_entity_t>
fn get_participant(&self) -> DdsResult<dds_entity_t>
fn get_publisher(&self) -> DdsResult<dds_entity_t>
fn get_subscriber(&self) -> DdsResult<dds_entity_t>
fn get_datareader(&self) -> DdsResult<dds_entity_t>
fn get_topic(&self) -> DdsResult<dds_entity_t>
fn get_children(&self) -> DdsResult<Vec<dds_entity_t>>
fn get_name(&self) -> DdsResult<String>
fn get_type_name(&self) -> DdsResult<String>
fn get_domain_id(&self) -> DdsResult<u32>
fn get_instance_handle(&self) -> DdsResult<dds_instance_handle_t>
fn get_guid(&self) -> DdsResult<dds_guid_t>
Source§fn guid(&self) -> DdsResult<dds_guid_t>
fn guid(&self) -> DdsResult<dds_guid_t>
Convenience alias for
Self::get_guid.Source§fn status(&self) -> DdsResult<EntityStatus>
fn status(&self) -> DdsResult<EntityStatus>
Read a consolidated status snapshot for this entity. Read more
fn enable(&self) -> DdsResult<()>
fn get_status_mask(&self) -> DdsResult<u32>
fn set_status_mask(&self, mask: u32) -> DdsResult<()>
fn get_status_changes(&self) -> DdsResult<u32>
fn read_status(&self, mask: u32) -> DdsResult<u32>
fn take_status(&self, mask: u32) -> DdsResult<u32>
Source§fn status_changes(&self) -> DdsResult<u32>
fn status_changes(&self) -> DdsResult<u32>
Get the set of triggered status bits that have changed since the
last time they were read.
fn triggered(&self) -> DdsResult<bool>
fn create_statistics(&self) -> DdsResult<Statistics>
fn get_qos(&self) -> DdsResult<Qos>
fn get_sertype(&self) -> DdsResult<SertypeHandle>
fn get_type_info(&self) -> DdsResult<TypeInfo>
fn get_type_object( &self, type_id: *const dds_typeid_t, timeout: dds_duration_t, ) -> DdsResult<TypeObject>
fn get_minimal_type_object( &self, timeout: dds_duration_t, ) -> DdsResult<Option<TypeObject>>
fn get_complete_type_object( &self, timeout: dds_duration_t, ) -> DdsResult<Option<TypeObject>>
fn matches_entity_type_info<E: DdsEntity>(&self, other: &E) -> DdsResult<bool>
Auto Trait Implementations§
impl Freeze for Subscriber
impl RefUnwindSafe for Subscriber
impl Send for Subscriber
impl Sync for Subscriber
impl Unpin for Subscriber
impl UnsafeUnpin for Subscriber
impl UnwindSafe for Subscriber
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> StatusExt for T
impl<T> StatusExt for T
Source§fn inconsistent_topic_status(&self) -> DdsResult<InconsistentTopicStatus>
fn inconsistent_topic_status(&self) -> DdsResult<InconsistentTopicStatus>
Get the inconsistent-topic status (valid for Topic entities). Read more
Source§fn liveliness_lost_status(&self) -> DdsResult<LivelinessLostStatus>
fn liveliness_lost_status(&self) -> DdsResult<LivelinessLostStatus>
Get the liveliness-lost status (valid for DataWriter entities). Read more
Source§fn liveliness_changed_status(&self) -> DdsResult<LivelinessChangedStatus>
fn liveliness_changed_status(&self) -> DdsResult<LivelinessChangedStatus>
Get the liveliness-changed status (valid for DataReader entities). Read more
Source§fn offered_deadline_missed_status(
&self,
) -> DdsResult<OfferedDeadlineMissedStatus>
fn offered_deadline_missed_status( &self, ) -> DdsResult<OfferedDeadlineMissedStatus>
Get the offered-deadline-missed status (valid for DataWriter entities). Read more
Source§fn offered_incompatible_qos_status(
&self,
) -> DdsResult<OfferedIncompatibleQosStatus>
fn offered_incompatible_qos_status( &self, ) -> DdsResult<OfferedIncompatibleQosStatus>
Get the offered-incompatible-QoS status (valid for DataWriter entities). Read more
Source§fn requested_deadline_missed_status(
&self,
) -> DdsResult<RequestedDeadlineMissedStatus>
fn requested_deadline_missed_status( &self, ) -> DdsResult<RequestedDeadlineMissedStatus>
Get the requested-deadline-missed status (valid for DataReader entities). Read more
Source§fn requested_incompatible_qos_status(
&self,
) -> DdsResult<RequestedIncompatibleQosStatus>
fn requested_incompatible_qos_status( &self, ) -> DdsResult<RequestedIncompatibleQosStatus>
Get the requested-incompatible-QoS status (valid for DataReader entities). Read more
Source§fn sample_lost_status(&self) -> DdsResult<SampleLostStatus>
fn sample_lost_status(&self) -> DdsResult<SampleLostStatus>
Get the sample-lost status (valid for DataReader entities). Read more
Source§fn sample_rejected_status(&self) -> DdsResult<SampleRejectedStatus>
fn sample_rejected_status(&self) -> DdsResult<SampleRejectedStatus>
Get the sample-rejected status (valid for DataReader entities). Read more
Source§fn publication_matched_status(&self) -> DdsResult<PublicationMatchedStatus>
fn publication_matched_status(&self) -> DdsResult<PublicationMatchedStatus>
Get the publication-matched status (valid for DataWriter entities). Read more
Source§fn subscription_matched_status(&self) -> DdsResult<SubscriptionMatchedStatus>
fn subscription_matched_status(&self) -> DdsResult<SubscriptionMatchedStatus>
Get the subscription-matched status (valid for DataReader entities). Read more