pub enum FederationError {
Revoked,
ListStale,
Refused {
code: String,
detail: String,
},
Transport(String),
Feed(SyncError),
UpgradeRequired(Box<UpgradeRequired>),
}Expand description
Why a federated pull could not proceed.
Variants§
Revoked
The capability’s jti is on the home server’s published revocation list.
Terminal for this token. The peer asks the album’s owner for a fresh grant, or stops.
ListStale
The revocation list could not be refreshed inside its own staleness bound.
Not a reason to keep pulling: a list a peer cannot refresh is a list that may have revoked this token, and honouring the token anyway is exactly the failure the bound exists to prevent.
Refused
The home server refused, or could not be reached.
Fields
Transport(String)
The transport failed, or a URL could not be built.
Feed(SyncError)
The feed answered, and the page did not survive validation.
UpgradeRequired(Box<UpgradeRequired>)
The home server will not take this peer’s writes: its 426, or a window it advertised
that already refuses this build (issue #674).
Trait Implementations§
Source§impl Debug for FederationError
impl Debug for FederationError
Source§impl Display for FederationError
impl Display for FederationError
Source§impl Error for FederationError
impl Error for FederationError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for FederationError
impl !UnwindSafe for FederationError
impl Freeze for FederationError
impl Send for FederationError
impl Sync for FederationError
impl Unpin for FederationError
impl UnsafeUnpin for FederationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more