Skip to content

Commit fc44d5d

Browse files
committed
Export also DomainParticipantStatusListener. GitHub #396. Add missing docs.
1 parent e599488 commit fc44d5d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/dds/participant.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ use crate::{
5959
#[cfg(not(feature = "security"))]
6060
use crate::no_security::SecurityPluginsHandle;
6161

62+
/// Builder object to create a [`DomainParticipant`] with non-default
63+
/// configuration.
64+
///
65+
/// Currently, the builder is mostly for configuring security, so the
66+
/// functionality is very limited unless you are building RustDDS with
67+
/// `security` feature enabled.
6268
pub struct DomainParticipantBuilder {
6369
domain_id: u16,
6470

@@ -493,6 +499,8 @@ impl DomainParticipant {
493499
// --------------------------------------------------------------------------
494500
// --------------------------------------------------------------------------
495501

502+
/// Produces an async (or mio-pollable) stream of
503+
/// [`DomainParticipantStatusEvent`]s
496504
pub struct DomainParticipantStatusListener {
497505
dp_disc: Arc<Mutex<DomainParticipantDisc>>,
498506
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub mod serialization;
202202
#[doc(inline)]
203203
pub use dds::{
204204
key::{Key, Keyed},
205-
participant::{DomainParticipant, DomainParticipantBuilder},
205+
participant::{DomainParticipant, DomainParticipantBuilder, DomainParticipantStatusListener},
206206
pubsub::{Publisher, Subscriber},
207207
qos,
208208
qos::{policy, QosPolicies, QosPolicyBuilder},

0 commit comments

Comments
 (0)