pub struct EventPublisher<Q: WriteQueueBackend> { /* private fields */ }Expand description
Publishes events to the write-side queue for durable processing.
Implementations§
Trait Implementations§
Source§impl<Q: Clone + WriteQueueBackend> Clone for EventPublisher<Q>
impl<Q: Clone + WriteQueueBackend> Clone for EventPublisher<Q>
Source§fn clone(&self) -> EventPublisher<Q>
fn clone(&self) -> EventPublisher<Q>
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<Q: WriteQueueBackend> TypedPublisher for EventPublisher<Q>
impl<Q: WriteQueueBackend> TypedPublisher for EventPublisher<Q>
fn publish_typed<'life0, 'life1, 'life2, 'life3, 'async_trait, N, C>(
&'life0 self,
namespace: &'life1 N,
codec: &'life2 C,
event: &'life3 C::Event,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
N: Namespace + 'async_trait,
C: EventCodec + ?Sized + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl<Q> Freeze for EventPublisher<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for EventPublisher<Q>where
Q: RefUnwindSafe,
impl<Q> Send for EventPublisher<Q>
impl<Q> Sync for EventPublisher<Q>
impl<Q> Unpin for EventPublisher<Q>where
Q: Unpin,
impl<Q> UnsafeUnpin for EventPublisher<Q>where
Q: UnsafeUnpin,
impl<Q> UnwindSafe for EventPublisher<Q>where
Q: UnwindSafe,
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