pub trait Publisher: Send + Sync {
// Required method
fn publish<'life0, 'async_trait>(
&'life0 self,
resource_id: u16,
call_options: CallOptions,
payload: Option<UPayload>,
) -> Pin<Box<dyn Future<Output = Result<(), PubSubError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A client for publishing messages to a topic.
Please refer to the Communication Layer API Specifications.