DataWriterAsync

Struct DataWriterAsync 

Source
pub struct DataWriterAsync<R: DdsRuntime, Foo> { /* private fields */ }
Expand description

Async version of DataWriter.

Implementations§

Source§

impl<R: DdsRuntime, Foo> DataWriterAsync<R, Foo>
where Foo: TypeSupport,

Source

pub async fn register_instance( &self, instance: &Foo, ) -> DdsResult<Option<InstanceHandle>>

Async version of register_instance.

Source

pub async fn register_instance_w_timestamp( &self, _instance: &Foo, timestamp: Time, ) -> DdsResult<Option<InstanceHandle>>

Source

pub async fn unregister_instance( &self, instance: Foo, handle: Option<InstanceHandle>, ) -> DdsResult<()>

Async version of unregister_instance.

Source

pub async fn unregister_instance_w_timestamp( &self, instance: Foo, handle: Option<InstanceHandle>, timestamp: Time, ) -> DdsResult<()>

Source

pub async fn get_key_value( &self, _key_holder: &mut Foo, _handle: InstanceHandle, ) -> DdsResult<()>

Async version of get_key_value.

Source

pub async fn lookup_instance( &self, instance: Foo, ) -> DdsResult<Option<InstanceHandle>>

Async version of lookup_instance.

Source

pub async fn write( &self, data: Foo, handle: Option<InstanceHandle>, ) -> DdsResult<()>

Async version of write.

Source

pub async fn write_w_timestamp( &self, data: Foo, handle: Option<InstanceHandle>, timestamp: Time, ) -> DdsResult<()>

Async version of write_w_timestamp.

Source

pub async fn dispose( &self, data: Foo, handle: Option<InstanceHandle>, ) -> DdsResult<()>

Async version of dispose.

Source

pub async fn dispose_w_timestamp( &self, data: Foo, handle: Option<InstanceHandle>, timestamp: Time, ) -> DdsResult<()>

Async version of dispose_w_timestamp.

Source§

impl<R: DdsRuntime, Foo> DataWriterAsync<R, Foo>

Source§

impl<R: DdsRuntime, Foo> DataWriterAsync<R, Foo>

Source

pub async fn set_qos(&self, qos: QosKind<DataWriterQos>) -> DdsResult<()>

Async version of set_qos.

Source

pub async fn get_qos(&self) -> DdsResult<DataWriterQos>

Async version of get_qos.

Source

pub fn get_statuscondition(&self) -> StatusConditionAsync<R>

Async version of get_statuscondition.

Source

pub async fn get_status_changes(&self) -> DdsResult<Vec<StatusKind>>

Async version of get_status_changes.

Source

pub async fn enable(&self) -> DdsResult<()>

Async version of enable.

Source

pub async fn get_instance_handle(&self) -> InstanceHandle

Async version of get_instance_handle.

Source§

impl<R: DdsRuntime, Foo> DataWriterAsync<R, Foo>

Source

pub async fn set_listener( &self, a_listener: Option<impl DataWriterListener<R, Foo> + Send + 'static>, mask: &[StatusKind], ) -> DdsResult<()>

Async version of set_listener.

Trait Implementations§

Source§

impl<R: DdsRuntime, Foo> Clone for DataWriterAsync<R, Foo>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<R: DdsRuntime, Foo> From<DataWriterAsync<R, Foo>> for DataWriter<R, Foo>

Source§

fn from(value: DataWriterAsync<R, Foo>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<R, Foo> Freeze for DataWriterAsync<R, Foo>
where <R as DdsRuntime>::ChannelSender<DcpsStatusConditionMail<R>>: Freeze, <R as DdsRuntime>::ChannelSender<DcpsDomainParticipantMail<R>>: Freeze, <R as DdsRuntime>::SpawnerHandle: Freeze, <R as DdsRuntime>::ClockHandle: Freeze, <R as DdsRuntime>::TimerHandle: Freeze,

§

impl<R, Foo> RefUnwindSafe for DataWriterAsync<R, Foo>
where <R as DdsRuntime>::ChannelSender<DcpsStatusConditionMail<R>>: RefUnwindSafe, Foo: RefUnwindSafe, <R as DdsRuntime>::ChannelSender<DcpsDomainParticipantMail<R>>: RefUnwindSafe, <R as DdsRuntime>::SpawnerHandle: RefUnwindSafe, <R as DdsRuntime>::ClockHandle: RefUnwindSafe, <R as DdsRuntime>::TimerHandle: RefUnwindSafe,

§

impl<R, Foo> Send for DataWriterAsync<R, Foo>
where Foo: Send,

§

impl<R, Foo> Sync for DataWriterAsync<R, Foo>
where Foo: Sync,

§

impl<R, Foo> Unpin for DataWriterAsync<R, Foo>
where <R as DdsRuntime>::ChannelSender<DcpsStatusConditionMail<R>>: Unpin, Foo: Unpin, <R as DdsRuntime>::ChannelSender<DcpsDomainParticipantMail<R>>: Unpin, <R as DdsRuntime>::SpawnerHandle: Unpin, <R as DdsRuntime>::ClockHandle: Unpin, <R as DdsRuntime>::TimerHandle: Unpin,

§

impl<R, Foo> UnwindSafe for DataWriterAsync<R, Foo>
where <R as DdsRuntime>::ChannelSender<DcpsStatusConditionMail<R>>: UnwindSafe, Foo: UnwindSafe, <R as DdsRuntime>::ChannelSender<DcpsDomainParticipantMail<R>>: UnwindSafe, <R as DdsRuntime>::SpawnerHandle: UnwindSafe, <R as DdsRuntime>::ClockHandle: UnwindSafe, <R as DdsRuntime>::TimerHandle: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more