Skip to main content

MatrixHttpClient

Trait MatrixHttpClient 

Source
pub trait MatrixHttpClient: Send + Sync {
    // Required methods
    fn send_message<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        room_id: &'life1 str,
        text: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn sync<'life0, 'life1, 'async_trait>(
        &'life0 self,
        since: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<MatrixEvent>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn login<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for Matrix API interactions.

Required Methods§

Source

fn send_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, room_id: &'life1 str, text: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn sync<'life0, 'life1, 'async_trait>( &'life0 self, since: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<MatrixEvent>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Implementors§