Skip to main content

WriteQueueBackend

Trait WriteQueueBackend 

Source
pub trait WriteQueueBackend: Send + Sync {
    // Required method
    fn publish<'life0, 'life1, 'life2, 'async_trait, N>(
        &'life0 self,
        namespace: &'life1 N,
        payload: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where N: 'async_trait + Namespace,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Publishes raw events to the write-side RabbitMQ queue.

Required Methods§

Source

fn publish<'life0, 'life1, 'life2, 'async_trait, N>( &'life0 self, namespace: &'life1 N, payload: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where N: 'async_trait + Namespace, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§