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,
/syncand transaction ids are Rust’s.
Constants§
- IO_
TIMEOUT - One ordinary request, connect to last byte.
- MAX_
ANSWER_ BYTES - Largest answer read (a first
/syncon 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
/syncasks the server to wait for something new.