Struct up_rust::communication::SimplePublisher  
source · 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