pub struct MessagingBackend<T: Send + Sync + 'static> {
pub producer: Arc<dyn MessageProducer<T>>,
pub consumer: Arc<dyn MessageConsumer<T>>,
}Expand description
Producer/consumer pair created for a messaging backend.
Fields§
§producer: Arc<dyn MessageProducer<T>>Producer for the selected backend.
consumer: Arc<dyn MessageConsumer<T>>Consumer for the selected backend.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for MessagingBackend<T>
impl<T> !UnwindSafe for MessagingBackend<T>
impl<T> Freeze for MessagingBackend<T>
impl<T> Send for MessagingBackend<T>
impl<T> Sync for MessagingBackend<T>
impl<T> Unpin for MessagingBackend<T>
impl<T> UnsafeUnpin for MessagingBackend<T>
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