Trait gm_boilerplate::MatrixBot [] [src]

pub trait MatrixBot {
    type Command;
    type SyncFuture: Future<Item = Vec<(Room<'static>, Self::Command)>, Error = MatrixError>;
    type CmdFuture: Future<Item = (), Error = MatrixError>;
    type ErrorFuture: Future<Item = (), Error = MatrixError>;
    fn on_login(&mut self, mx: Mx);
fn on_sync(&mut self, reply: SyncReply) -> Self::SyncFuture;
fn on_command(
        &mut self,
        room: Room<'static>,
        command: Self::Command
    ) -> Self::CmdFuture;
fn on_error(
        &mut self,
        room: Option<Room<'static>>,
        error: MatrixError
    ) -> Self::ErrorFuture; }

Associated Types

Required Methods

Implementors