Trait HotShotEventsApi
Source pub trait HotShotEventsApi {
type Event: Serialize + Send + Sync + 'static;
type StartupInfo: Serialize + Send + Sync + 'static;
// Required methods
fn startup_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::StartupInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, Self::Event>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}