//! Backend-agnostic publisher trait (write side of pub/sub).
use async_trait;
use crateResult;
/// Publisher (write side) of pub/sub messaging.
///
/// For combined publish+subscribe, use [`PubSub`](crate::PubSub) which
/// binds Publisher and [`Subscriber`](crate::Subscriber) to the same backend.
///
/// See [`PublisherExt`](crate::PublisherExt) for typed convenience methods.