pub struct AsyncDomainParticipantFactory { /* private fields */ }Expand description
Async wrapper around the sync singleton. instance() always returns
the same singleton; the create_participant methods share state
with the sync API.
Implementations§
Source§impl AsyncDomainParticipantFactory
impl AsyncDomainParticipantFactory
Sourcepub fn create_participant_offline(
&self,
domain_id: i32,
) -> AsyncDomainParticipant
pub fn create_participant_offline( &self, domain_id: i32, ) -> AsyncDomainParticipant
Offline participant (no UDP bind). Spec §1.1.
Sourcepub fn create_participant(
&self,
domain_id: i32,
) -> Result<AsyncDomainParticipant>
pub fn create_participant( &self, domain_id: i32, ) -> Result<AsyncDomainParticipant>
Sourcepub fn create_participant_with_qos(
&self,
domain_id: i32,
qos: DomainParticipantQos,
) -> Result<AsyncDomainParticipant>
pub fn create_participant_with_qos( &self, domain_id: i32, qos: DomainParticipantQos, ) -> Result<AsyncDomainParticipant>
Like create_participant but with custom QoS.
§Errors
As DomainParticipantFactory::create_participant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncDomainParticipantFactory
impl RefUnwindSafe for AsyncDomainParticipantFactory
impl Send for AsyncDomainParticipantFactory
impl Sync for AsyncDomainParticipantFactory
impl Unpin for AsyncDomainParticipantFactory
impl UnsafeUnpin for AsyncDomainParticipantFactory
impl UnwindSafe for AsyncDomainParticipantFactory
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