WithStreamPublisher

Trait WithStreamPublisher 

Source
pub trait WithStreamPublisher:
    'static
    + Sync
    + Send
where Self: Process,
{ // Provided method fn publish<'life0, 'life1, 'life2, 'async_trait, E>( &'life0 self, event: &'life1 E, ctx: &'life2 mut Context, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where E: 'async_trait + Event, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } }

Provided Methods§

Source

fn publish<'life0, 'life1, 'life2, 'async_trait, E>( &'life0 self, event: &'life1 E, ctx: &'life2 mut Context, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where E: 'async_trait + Event, 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", so this trait is not object safe.

Implementors§

Source§

impl<T> WithStreamPublisher for T
where T: Process,