pub struct ParticipantBuilder { /* private fields */ }Expand description
Fluent builder for a DomainParticipant, returned by
DomainParticipantFactory::create. Collects optional QoS, a custom
RuntimeConfig, and a SecurityBundle
(under the security feature) and creates the participant via the
factory singleton on Self::build.
Implementations§
Source§impl ParticipantBuilder
impl ParticipantBuilder
Sourcepub fn with_qos(self, qos: DomainParticipantQos) -> Self
pub fn with_qos(self, qos: DomainParticipantQos) -> Self
Sets the participant QoS (default: DomainParticipantQos::default).
Sourcepub fn with_config(self, config: RuntimeConfig) -> Self
pub fn with_config(self, config: RuntimeConfig) -> Self
Sets an explicit RuntimeConfig. Overrides the config derived
from QoS / security wiring; subsequent [Self::with_security]
calls mutate this config.
Sourcepub fn build(self) -> Result<DomainParticipant>
pub fn build(self) -> Result<DomainParticipant>
Creates the live participant via the factory singleton.
§Errors
DdsError::TransportError if the UDP sockets do not bind.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ParticipantBuilder
impl !UnwindSafe for ParticipantBuilder
impl Freeze for ParticipantBuilder
impl Send for ParticipantBuilder
impl Sync for ParticipantBuilder
impl Unpin for ParticipantBuilder
impl UnsafeUnpin for ParticipantBuilder
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