1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-social/src/bot/matrix/sync.rs
Items
const SYNC_TIMEOUT_MS const HTTP_TIMEOUT const MAX_RESPONSE const ERROR_BACKOFF_MIN const ERROR_BACKOFF_MAX struct MatrixSyncState impl Default for MatrixSyncState impl MatrixSyncState enum SyncCycle
Functions
By call-graph weight (PageRank; 1.0 is the average function). 26 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| urlencode_querysrc/bot/matrix/sync.rs:269 | fn | 10 | 3 | 2 | 0 | 2.9 | |
| matrix_event_to_bot_eventsrc/bot/matrix/sync.rs:234 | fn | 31 | 2 | 5 | 0 | 2.5 | |
| build_sync_urlsrc/bot/matrix/sync.rs:162 | fn | 11 | 3 | 5 | 1 | 2.3 | |
| iter_room_message_eventssrc/bot/matrix/sync.rs:202 | fn | 28 | 5 | 4 | 0 | 2.1 | |
| MatrixSyncState::backoffsrc/bot/matrix/sync.rs:88 | method | 3 | 1 | 2 | 0 | 1.3 | |
| MatrixSyncState::reset_backoffsrc/bot/matrix/sync.rs:92 | method | 3 | 1 | 1 | 0 | 0.8 | |
| emit_sync_eventssrc/bot/matrix/sync.rs:138 | fn | 10 | 4 | 1 | 2 | 0.8 | |
| MatrixSyncState::defaultsrc/bot/matrix/sync.rs:82 | trait impl | 3 | 1 | 1 | 0 | 0.7 | |
| run_sync_cyclesrc/bot/matrix/sync.rs:107 | fn | 17 | 2 | 1 | 4 | 0.7 | |
| run_streamsrc/bot/matrix/sync.rs:57 | fn | 17 | 3 | 1 | 3 | 0.7 | |
| MatrixSyncState::increase_backoffsrc/bot/matrix/sync.rs:96 | method | 3 | 1 | 1 | 1 | 0.7 | |
| process_sync_responsesrc/bot/matrix/sync.rs:125 | fn | 12 | 1 | 1 | 2 | 0.6 | |
| handle_sync_errorsrc/bot/matrix/sync.rs:149 | fn | 12 | 2 | 1 | 3 | 0.6 | |
| perform_syncsrc/bot/matrix/sync.rs:174 | fn | 24 | 2 | 1 | 3 | 0.6 | |
| build_sync_url_without_since_omits_paramsrc/bot/matrix/sync.rs:286 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| build_sync_url_with_since_appends_paramsrc/bot/matrix/sync.rs:292 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| build_sync_url_url_encodes_since_tokensrc/bot/matrix/sync.rs:298 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| build_sync_url_with_empty_since_omits_paramsrc/bot/matrix/sync.rs:306 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| iter_room_message_events_walks_join_mapsrc/bot/matrix/sync.rs:312 | fn | 35 | 1 | 0 | 1 | 0.5 | |
| matrix_event_to_bot_event_basicsrc/bot/matrix/sync.rs:349 | fn | 19 | 1 | 0 | 1 | 0.5 | |
| matrix_event_tags_mention_when_body_contains_bot_mxidsrc/bot/matrix/sync.rs:370 | fn | 12 | 1 | 0 | 1 | 0.5 | |
| matrix_event_extracts_in_reply_to_as_parent_idsrc/bot/matrix/sync.rs:384 | fn | 16 | 1 | 0 | 1 | 0.5 | |
| matrix_event_to_bot_event_returns_none_without_event_idsrc/bot/matrix/sync.rs:402 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| urlencode_query_preserves_unreserved_and_escapes_reservedsrc/bot/matrix/sync.rs:413 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| iter_returns_empty_when_no_join_roomssrc/bot/matrix/sync.rs:419 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| iter_returns_empty_when_response_has_no_rooms_fieldsrc/bot/matrix/sync.rs:425 | fn | 4 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.