pub struct AsyncDomainParticipant { /* private fields */ }Expand description
Async wrapper around DomainParticipant. Topics, pubs and subs are
created via the sync API; only the newtype freely switches to the
async API.
Implementations§
Source§impl AsyncDomainParticipant
impl AsyncDomainParticipant
Sourcepub fn create_publisher(&self, qos: PublisherQos) -> AsyncPublisher
pub fn create_publisher(&self, qos: PublisherQos) -> AsyncPublisher
Creates a publisher.
Sourcepub fn create_subscriber(&self, qos: SubscriberQos) -> AsyncSubscriber
pub fn create_subscriber(&self, qos: SubscriberQos) -> AsyncSubscriber
Creates a subscriber.
Sourcepub fn as_sync(&self) -> &DomainParticipant
pub fn as_sync(&self) -> &DomainParticipant
Returns the underlying sync variant.
Trait Implementations§
Source§impl Clone for AsyncDomainParticipant
impl Clone for AsyncDomainParticipant
Source§fn clone(&self) -> AsyncDomainParticipant
fn clone(&self) -> AsyncDomainParticipant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AsyncDomainParticipant
impl !UnwindSafe for AsyncDomainParticipant
impl Freeze for AsyncDomainParticipant
impl Send for AsyncDomainParticipant
impl Sync for AsyncDomainParticipant
impl Unpin for AsyncDomainParticipant
impl UnsafeUnpin for AsyncDomainParticipant
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