pub enum ResolveError {
Fetch(FetchError),
NoSubject {
asked: String,
},
NoActor {
asked: String,
},
BadSubject {
asked: String,
subject: String,
},
TooManyRedirects {
asked: String,
stopped_at: String,
},
NotLoopingBack {
handle: String,
actor: String,
},
}Expand description
Why a handle could not be resolved.
Variants§
Fetch(FetchError)
A host could not be asked, or did not answer with a JRD. A 410 Gone is here, with its status: the handle is gone from its host.
NoSubject
The answer for asked has no subject.
NoActor
The answer for asked names no ActivityPub actor.
BadSubject
The subject of the answer for asked is not a handle.
TooManyRedirects
The handle the answer for asked gave as canonical names yet
another one, stopped_at.
NotLoopingBack
The handle, resolved, names another actor than the one it was expected to.
Implementations§
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
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 From<FetchError> for ResolveError
impl From<FetchError> for ResolveError
Source§fn from(error: FetchError) -> Self
fn from(error: FetchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ResolveError
impl !UnwindSafe for ResolveError
impl Freeze for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnsafeUnpin for ResolveError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.