Struct px4::uorb::Publisher

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

A publisher of Messages.

Create one using one of the advertise functions.

Dropping the publisher will unadvertise the message.

Implementations

Publish a message.

The first time this funciton is called, it will call advertise the message.

Check whether the message is already advertised.

Will be true after the first call to publish.

Get the instance number of the published message.

Only available after the first call to publish, for publishers created through advertise_multi or advertise_multi_queue.

Get the raw orb_advert_t.

Will return 0 before the first call to publish.

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.