pub enum AtUriError {
TooLong(usize),
NotAtScheme,
BadAuthority(String),
BadCollection {
collection: String,
source: NsidError,
},
BadRecordKey {
rkey: String,
source: RecordKeyError,
},
BadPath(String),
QueryOrFragment,
}Expand description
Why a string is not a usable at:// URI.
Variants§
TooLong(usize)
Over MAX_ATURI_LENGTH bytes.
NotAtScheme
Does not start with the exact lowercase at://.
BadAuthority(String)
The authority is neither a valid DID nor a valid handle.
BadCollection
The collection segment is not a valid NSID.
BadRecordKey
The record key segment is not a valid record key.
BadPath(String)
More path segments than collection/rkey, or a trailing slash, or an
empty segment. All three arrive here as an empty or extra segment.
QueryOrFragment
A query string or fragment, neither of which the restricted form has.
Trait Implementations§
Source§impl Clone for AtUriError
impl Clone for AtUriError
Source§fn clone(&self) -> AtUriError
fn clone(&self) -> AtUriError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtUriError
impl Debug for AtUriError
Source§impl Display for AtUriError
impl Display for AtUriError
Source§impl Error for AtUriError
impl Error for AtUriError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AtUriError
impl PartialEq for AtUriError
Source§fn eq(&self, other: &AtUriError) -> bool
fn eq(&self, other: &AtUriError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AtUriError
impl StructuralPartialEq for AtUriError
Auto Trait Implementations§
impl Freeze for AtUriError
impl RefUnwindSafe for AtUriError
impl Send for AtUriError
impl Sync for AtUriError
impl Unpin for AtUriError
impl UnsafeUnpin for AtUriError
impl UnwindSafe for AtUriError
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
Mutably borrows from an owned value. Read more
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.