pub struct Subscriber { /* private fields */ }Expand description
Subscriber — entity group for DataReaders.
Implementations§
Source§impl Subscriber
impl Subscriber
Sourcepub fn contains_reader(&self, handle: InstanceHandle) -> bool
pub fn contains_reader(&self, handle: InstanceHandle) -> bool
Spec §2.2.2.2.1.10 — true if handle is a DataReader created
via this Subscriber.
Sourcepub fn begin_access(&self)
pub fn begin_access(&self)
Spec §2.2.2.5.2.8 begin_access — marks the start of a coherent
read set. Nesting is allowed; each call increments an internal
counter, each end_access decrements it.
Sourcepub fn end_access(&self) -> Result<()>
pub fn end_access(&self) -> Result<()>
Spec §2.2.2.5.2.9 end_access — counterpart to begin_access.
§Errors
DdsError::PreconditionNotMet if end_access is called without a
preceding begin_access.
Sourcepub fn is_access_open(&self) -> bool
pub fn is_access_open(&self) -> bool
true if a group access is currently open.
Sourcepub fn set_listener(
&self,
listener: Option<ArcSubscriberListener>,
mask: StatusMask,
)
pub fn set_listener( &self, listener: Option<ArcSubscriberListener>, mask: StatusMask, )
Sets the SubscriberListener + StatusMask. None clears the
slot. Spec §2.2.2.5.6.x set_listener.
Sourcepub fn get_listener(&self) -> Option<ArcSubscriberListener>
pub fn get_listener(&self) -> Option<ArcSubscriberListener>
Current listener clone.
Sourcepub fn create_datareader<T: DdsType + Send + 'static>(
&self,
topic: &Topic<T>,
qos: DataReaderQos,
) -> Result<DataReader<T>>
pub fn create_datareader<T: DdsType + Send + 'static>( &self, topic: &Topic<T>, qos: DataReaderQos, ) -> Result<DataReader<T>>
Trait Implementations§
Source§impl Debug for Subscriber
impl Debug for Subscriber
Source§impl Entity for Subscriber
Available on crate feature std only.
impl Entity for Subscriber
Available on crate feature
std only.Source§type Qos = SubscriberQos
type Qos = SubscriberQos
QoS type for this entity (e.g.
DomainParticipantQos,
DataWriterQos, …).Source§fn set_qos(&self, qos: Self::Qos) -> Result<()>
fn set_qos(&self, qos: Self::Qos) -> Result<()>
Changes the QoS. Before enable: everything allowed. After
enable: only fields with “Changeable=YES” — otherwise an
ImmutablePolicy error. Spec §2.2.2.1.2 set_qos. Read moreSource§fn enable(&self) -> Result<()>
fn enable(&self) -> Result<()>
Enables the entity (idempotent). Spec §2.2.2.1.4
enable. Read moreSource§fn entity_state(&self) -> Arc<EntityState> ⓘ
fn entity_state(&self) -> Arc<EntityState> ⓘ
Internal accessor — each impl returns its
Arc<EntityState>.Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
True if the entity is already enabled.
Source§fn get_status_condition(&self) -> StatusCondition
fn get_status_condition(&self) -> StatusCondition
StatusCondition of this entity.
Spec §2.2.2.1.6 get_status_condition.Source§fn get_status_changes(&self) -> StatusMask
fn get_status_changes(&self) -> StatusMask
Bitmask of the status kinds changed since the last read.
Spec §2.2.2.1.5
get_status_changes.Source§fn get_instance_handle(&self) -> InstanceHandle
fn get_instance_handle(&self) -> InstanceHandle
Local 64-bit identifier. Spec §2.2.2.1.7
get_instance_handle.Auto Trait Implementations§
impl !RefUnwindSafe for Subscriber
impl !UnwindSafe for Subscriber
impl Freeze for Subscriber
impl Send for Subscriber
impl Sync for Subscriber
impl Unpin for Subscriber
impl UnsafeUnpin 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