1 viewer
rust 1,847,276 · typescript 232,434 · javascript 131,064 · python 19,227 · 6,362 files · digest fa0546eddd29 · built in 1.5 s · crystals off
crates/cre8-app-flight/src/quota.rs
Items
const LICENSED_ANONYMOUS_INTERVAL_MS const AUTHENTICATED_INTERVAL_MS const RATE_LIMIT_FALLBACK_INTERVAL_MS struct RequestBudget impl RequestBudget struct ProviderQuotaState impl ProviderQuotaState struct Admission
Functions
By call-graph weight (PageRank; 1.0 is the average function). 16 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| saturating_seconds_to_mssrc/quota.rs:159 | fn | 3 | 1 | 1 | 0 | 2.1 | |
| next_allowed_at_mssrc/quota.rs:144 | fn | 14 | 2 | 2 | 1 | 1.9 | |
| RequestBudget::for_bboxsrc/quota.rs:24 | method | 17 | 6 | 3 | 0 | 1.5 | |
| ProviderQuotaState::credits_insufficientsrc/quota.rs:84 | method | 3 | 1 | 3 | 0 | 1.4 | |
| state_after_response_fromsrc/quota.rs:110 | fn | 30 | 2 | 2 | 1 | 1.1 | |
| ProviderQuotaState::is_deferred_atsrc/quota.rs:77 | method | 3 | 1 | 2 | 0 | 1 | |
| estimated_request_creditssrc/quota.rs:43 | fn | 3 | 1 | 1 | 1 | 0.9 | |
| admissionsrc/quota.rs:169 | fn | 6 | 1 | 3 | 2 | 0.8 | |
| state_after_responsesrc/quota.rs:89 | fn | 20 | 1 | 2 | 1 | 0.7 | |
| bboxsrc/quota.rs:180 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| ProviderQuotaState::for_providersrc/quota.rs:63 | method | 13 | 1 | 1 | 0 | 0.6 | |
| request_credit_thresholds_are_inclusivesrc/quota.rs:185 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| invalid_and_nonfinite_boxes_are_rejectedsrc/quota.rs:195 | fn | 7 | 2 | 0 | 1 | 0.5 | |
| cooldown_exact_boundary_is_admittedsrc/quota.rs:204 | fn | 7 | 1 | 0 | 3 | 0.5 | |
| retry_precedence_fallback_and_saturation_are_deterministicsrc/quota.rs:213 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| unknown_credits_are_not_treated_as_zerosrc/quota.rs:222 | fn | 5 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.