[][src]Module matrix_bot_api::handlers

Re-exports

pub use self::stateless_handler::StatelessHandler;

Modules

stateless_handler

Structs

Message

Enums

HandleResult

What to do after finished handling a message

Traits

MessageHandler

Any struct that implements this trait can be passed to a MatrixBot. The bot will call handle_message() on each arriving text-message The result HandleResult defines if handle_message() of other handlers will be called with this message or not.

Functions

extract_command

Convenience-function to split the incoming message by whitespace and extract the given prefix from the first word. Returns None, if the message does not start with the given prefix