pub struct SimplePublisher { /* private fields */ }
Expand description
A Publisher
that uses the uProtocol Transport Layer API for publishing events to topics.
Implementations§
Source§impl SimplePublisher
impl SimplePublisher
Sourcepub fn new(
transport: Arc<dyn UTransport>,
uri_provider: Arc<dyn LocalUriProvider>,
) -> Self
pub fn new( transport: Arc<dyn UTransport>, uri_provider: Arc<dyn LocalUriProvider>, ) -> Self
Creates a new client.
§Arguments
transport
- The transport to use for sending messages.uri_provider
- The service to use for creating the event messages’ sink address.
Trait Implementations§
Source§impl Publisher for SimplePublisher
impl Publisher for SimplePublisher
Auto Trait Implementations§
impl Freeze for SimplePublisher
impl !RefUnwindSafe for SimplePublisher
impl Send for SimplePublisher
impl Sync for SimplePublisher
impl Unpin for SimplePublisher
impl !UnwindSafe for SimplePublisher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more