pub fn of_error(
scope: Option<Scope>,
error: &CloudError,
now: UtcDateTime,
) -> Option<(String, Throttle)>Expand description
The throttle error sets at now, if it sets one: on the paths its
quota resource holds plus scope, the path that met it (None: an
HTTP call of unknown path, so only the resource’s paths; a policy
refusal then sets nothing).