pub enum DidError {
Show 15 variants
NotDidWeb(String),
TooLong(usize),
EmptyIdentifier,
PathBased(String),
EncodedPathSeparator(String),
BadPercentEscape(String),
InvalidCharacter(char),
EmptyLabel(String),
HyphenEdge(String),
PortOnNonLocalhost(String),
InvalidPort(String),
ArpaDomain,
InvalidAccountId(String),
InvalidZoneHost(String),
InvalidPdsHost(String),
}Expand description
Why a string is not a usable agent did:web.
Variants§
NotDidWeb(String)
The string does not start with did:web:.
TooLong(usize)
Longer than the atproto cap of 2048 characters.
EmptyIdentifier
The method-specific identifier is empty.
PathBased(String)
A literal colon appeared in the identifier. In did:web that is the
path separator, and atproto supports hostname-level DIDs only.
EncodedPathSeparator(String)
A percent escape that would decode to /, which would graft a path
onto the fetch URL.
BadPercentEscape(String)
Some percent escape other than the port colon.
InvalidCharacter(char)
A character outside the allowed subset, or an uppercase letter in a hostname that must be lowercase to be comparable.
EmptyLabel(String)
A .., a leading ., or a trailing . produced an empty DNS label.
HyphenEdge(String)
A label starting or ending with a hyphen.
PortOnNonLocalhost(String)
A port on something that is not localhost. Ports are development-only.
InvalidPort(String)
The port is missing, empty, or not a number.
ArpaDomain
A hostname under .arpa, which handles and did:web both exclude.
InvalidAccountId(String)
The agent id offered to AccountDid::mint is not a single DNS label.
InvalidZoneHost(String)
The zone host offered to Zone::new is not a usable hostname.
InvalidPdsHost(String)
The PDS hostname is not a usable hostname.
Trait Implementations§
Source§impl Error for DidError
impl Error for DidError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl Eq for DidError
impl StructuralPartialEq for DidError
Auto Trait Implementations§
impl Freeze for DidError
impl RefUnwindSafe for DidError
impl Send for DidError
impl Sync for DidError
impl Unpin for DidError
impl UnsafeUnpin for DidError
impl UnwindSafe for DidError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.