Expand description
The one round trip behind a cache miss, and what this reader will not make it for.
Structs§
- GetRecord
Response 🔒 - What
com.atproto.repo.getRecordanswers with on success. - List
Records 🔒Response - What
com.atproto.repo.listRecordsanswers with on success. - Listed
Record 🔒 - One record in a
ListRecordsResponse. - Network
- The real fetch: resolve the DID to its
#atproto_pdsendpoint, thencom.atproto.repo.getRecordthere. - NoLocal
Repositories - A deployment that holds nothing, for a caller with no registry to ask — a test, or a reader pointed only at the public network.
Enums§
Constants§
- MAX_
COLLECTION_ RECORDS - The most records one collection read takes from a repository.
- MAX_
RECORD_ BYTES - The most of one record’s JSON this reader holds in memory.
- RECORD_
NOT_ 🔒FOUND - The atproto error name a repository answers with for “there is no
record at that key” – the one 400 this reader reads as absence rather
than as a failure, exactly as
didbot_serve::operator_polldoes.
Traits§
- Fetch
- One round trip to a repository this deployment does not hold.
- Local
Repositories - What this deployment already holds, so the reader never fetches it over the network.
Functions§
- urlencode 🔒
- Percent-encodes everything a query parameter’s value may not carry literally, so a DID, an NSID or a record key reaches the remote server as one value rather than as extra parameters.
Type Aliases§
- Fetch
Future - A future a
Fetchimplementation hands back, boxed so the trait stays object-safe and a reader can be held asArc<dyn Fetch>.