Skip to main content

Crate headless_lms_utils

Crate headless_lms_utils 

Source
Expand description

Commonly used utils.

Modules§

azure_embedding
backoff
Exponential backoff with jitter, and the “has this retry window run out” check that goes with it. Shared by every worker that reschedules a failed row instead of giving up on it outright.
cache
Redis cache wrapper.
course_url
document_schema_processor
email_processor
error
Error utilities and the error and result types for all the util functions.
error_identifier
file_store
Allows storing files to a file storage backend.
folder_checksum
Provides functionality for checksumming directory trees.
futures
http
icu4x
ip_to_country
json_schema_types
language_tag_to_name
merge_edits
numbers
page_visit_hasher
pagination
periodic_worker
The tick-interval scaffold shared by every background worker that polls the database on a fixed period: regrader, chatbot_syncer and the credit registration phase runners.
prelude
secret_string
Helpers for personal data and credentials held as SecretString (or a wrapper of one), at the few places the real value must come out: a wire body, a SQL bind.
services
stable_digest
strings
url_encoding
url_to_oembed_endpoint

Macros§

attributes
define_err_macro
Defines a crate-local error creation macro that can be re-exported from a module.