pub struct InMemoryProducer<T: Clone + Send + Sync + 'static> { /* private fields */ }Expand description
An in-memory message producer.
Trait Implementations§
Source§impl<T: Clone + Clone + Send + Sync + 'static> Clone for InMemoryProducer<T>
impl<T: Clone + Clone + Send + Sync + 'static> Clone for InMemoryProducer<T>
Source§fn clone(&self) -> InMemoryProducer<T>
fn clone(&self) -> InMemoryProducer<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl EventProducer for InMemoryProducer<Value>
impl EventProducer for InMemoryProducer<Value>
Source§impl<T: Clone + Send + Sync + 'static> MessageProducer<T> for InMemoryProducer<T>
impl<T: Clone + Send + Sync + 'static> MessageProducer<T> for InMemoryProducer<T>
Source§fn send<'life0, 'async_trait>(
&'life0 self,
msg: Message<T>,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
msg: Message<T>,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a single message.
Source§fn send_batch<'life0, 'async_trait>(
&'life0 self,
msgs: Vec<Message<T>>,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_batch<'life0, 'async_trait>(
&'life0 self,
msgs: Vec<Message<T>>,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a batch of messages.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for InMemoryProducer<T>
impl<T> !UnwindSafe for InMemoryProducer<T>
impl<T> Freeze for InMemoryProducer<T>
impl<T> Send for InMemoryProducer<T>
impl<T> Sync for InMemoryProducer<T>
impl<T> Unpin for InMemoryProducer<T>
impl<T> UnsafeUnpin for InMemoryProducer<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