pub trait WithStreamPublisher:
'static
+ Sync
+ Sendwhere
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§
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.