Skip to main content

Module matrix

Module matrix 

Source
Expand description

Matrix client (client-server API v3). Logs in with a password, then one task follows /sync and raises what other people did (messages, invites, membership), while the session task performs the handler’s actions, one HTTP/1.1 connection per request.

Re-exports§

pub use actions::MatrixClientProtocol;

Modules§

actions
What the model does as a Matrix user: create rooms (inviting people), join, invite, leave, read a room’s recent history and send messages. Logging in, /sync and transaction ids are Rust’s.

Constants§

IO_TIMEOUT
One ordinary request, connect to last byte.
MAX_ANSWER_BYTES
Largest answer read (a first /sync on a busy account is the big one).
MAX_FOLLOWUP_DEPTH
A handler chain (answer → event → answer …) stops after this many follow-ups.
SYNC_BACKOFF
After a failed /sync, wait this long before the next.
SYNC_WAIT
How long each /sync asks the server to wait for something new.

Functions§

connect