Struct px4::uorb::Subscription

source ·
pub struct Subscription<T> { /* private fields */ }
Expand description

A subscription to a Message topic.

Create one using subscribe or subscribe_multi.

Dropping the subscription will unsubscribe from the topic.

Implementations

Get a copy of the latest message.

Copy the latest message into the given message object.

It is safe for *val to be uninitialized when calling this function.

Check if there have been any updates since the last call to get or copy.

Get the timestamp of the latest message, in microseconds.

Get the priority of the topic.

Set the minimum time (in milliseconds) between updates as seen by this subscription.

Get the minimum time (in milliseconds) between updates as seen by this subscription.

Get the raw handle.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.