Skip to main content

Module error

Module error 

Source
Expand description

The limits a scope string is read under, and every way reading one fails.

Enums§

ScopeParseError
A failure parsing one scope atom or a whole scope string.

Constants§

MAX_ATOM_BYTES
The longest atom Scope::parse reads: room for a longest NSID (317 bytes) with a longest DID (2048 bytes) as its aud.
MAX_GRANT_ATOMS
The most atoms ScopeSet::parse_grant reads. Four times MAX_SCOPE_ATOMS, for the same reason as MAX_GRANT_BYTES.
MAX_GRANT_BYTES
The longest grant ScopeSet::parse_grant reads: a request with each include: replaced by the atoms its permission set grants.
MAX_SCOPE_ATOMS
The most scopes a string ScopeSet::parse reads may name. An atom that lists several collections or methods names one for each. ScopeSet::new compares every pair of scopes, so this also bounds its cost.
MAX_SCOPE_BYTES
The longest scope string ScopeSet::parse reads. A real request is a few hundred bytes.