Expand description
Core of the rmv CLI and MCP server: configuration, the access key,
bounded retries, stop resolution and the status of connections.
Re-exports§
pub use config::Config;pub use config::Settings;pub use status::Realtime;pub use status::Reason;pub use status::Side;pub use status::Status;
Modules§
- agent
- The User-Agent, which names the project so RMV can tell where requests come from.
- config
- The configuration: the file, overridden by environment variables.
- dirs
- Where
rmvkeeps its configuration. On Linux and macOS it follows the XDG base directories:~/.config/rmv, or below$XDG_CONFIG_HOME. On Windows it is the usual one below%APPDATA%. - model
- The output: the same types for JSON, YAML and the structured content of
the MCP tools. Times are RFC 3339 with the offset of
Europe/Berlin, like2026-11-28T08:44:00+01:00. Delays are whole minutes, late positive, early negative. - modes
- Modes, like
SUBURBAN, and the product classes of RMV. A product class is a bit; a search takes the sum of the classes it wants asproducts. - resolve
- From what the caller typed to a stop ID: an ID is used as it is, a name only if it names one stop. A wrong stop gives wrong connections that look right, so a doubtful name is an error with the candidates, never a guess.
- retry
- Bounded repetitions after transient errors.
- status
- The status of a connection: whether the caller can still take it as planned. Pure functions of the legs, the current time and the delay threshold.
- time
- Times of the API. RMV gives dates and times in the local time of
Frankfurt, without an offset; the output is RFC 3339 with the offset of
Europe/Berlin, like2026-11-28T08:44:00+01:00. - version
- The version of the API that answers, against the newest one the fixtures cover.
Structs§
- Departures
Query - A search for departures or arrivals.
- Rmv
- RMV with its rules.
- Stops
Query - A search for stops.
- Trip
Query - A search for connections.
Enums§
Constants§
- MAX_
CONNECTIONS - The most connections of one search: what the API gives at once.
- MAX_
DEPARTURES - The most departures of one search.
- MAX_
STOPS - The most stops of one search.
Type Aliases§
- Clock
- The current time. Replaceable for tests.