EventsApi

Trait EventsApi 

Source
pub trait EventsApi: Send + Sync {
    // Required methods
    fn get_events<'topics, 'life0, 'async_trait>(
        &'life0 self,
        topics: Option<&'topics str>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<GetEventsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'topics: 'async_trait,
             'life0: 'async_trait;
    fn init_new_state_tacker<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<InitNewStateTackerError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_item_list_for_state_updates<'connection_id, 'request_body, 'life0, 'async_trait>(
        &'life0 self,
        connection_id: &'connection_id str,
        request_body: Option<Vec<String>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateItemListForStateUpdatesError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'connection_id: 'async_trait,
             'request_body: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature events_api only.

Required Methods§

Source

fn get_events<'topics, 'life0, 'async_trait>( &'life0 self, topics: Option<&'topics str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<GetEventsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'topics: 'async_trait, 'life0: 'async_trait,

GET /events

Source

fn init_new_state_tacker<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Error<InitNewStateTackerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /events/states

Source

fn update_item_list_for_state_updates<'connection_id, 'request_body, 'life0, 'async_trait>( &'life0 self, connection_id: &'connection_id str, request_body: Option<Vec<String>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateItemListForStateUpdatesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'connection_id: 'async_trait, 'request_body: 'async_trait, 'life0: 'async_trait,

POST /events/states/{connectionId}

Implementors§