Skip to main content

HotShotEventsApi

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;
}

Required Associated Types§

Source

type Event: Serialize + Send + Sync + 'static

Source

type StartupInfo: Serialize + Send + Sync + 'static

Required Methods§

Source

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,

Source

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,

Implementors§