Enum activitypub_federation::error::Error
source · pub enum Error {
Show 21 variants
NotFound,
RequestLimit,
ResponseBodyLimit,
ObjectDeleted(Url),
UrlVerificationError(&'static str),
ActivityBodyDigestInvalid,
ActivitySignatureInvalid,
WebfingerResolveFailed(WebFingerError),
SerializeOutgoingActivity(Error, String),
ParseFetchedObject(Error, Url, String),
ParseReceivedActivity(Error, Option<Url>),
ReqwestMiddleware(Error),
Reqwest(Error),
Utf8(FromUtf8Error),
UrlParse(ParseError),
SignError(SignError),
ActivityQueueError(Url),
StopActivityQueue(JoinError),
FetchInvalidContentType(Url),
FetchWrongId(Url),
Other(String),
}
Expand description
Error messages returned by this library
Variants§
NotFound
Object was not found in local database
RequestLimit
Request limit was reached during fetch
ResponseBodyLimit
Response body limit was reached during fetch
ObjectDeleted(Url)
Object to be fetched was deleted
UrlVerificationError(&'static str)
url verification error
ActivityBodyDigestInvalid
Incoming activity has invalid digest for body
ActivitySignatureInvalid
Incoming activity has invalid signature
WebfingerResolveFailed(WebFingerError)
Failed to resolve actor via webfinger
SerializeOutgoingActivity(Error, String)
Failed to serialize outgoing activity
ParseFetchedObject(Error, Url, String)
Failed to parse an object fetched from url
ParseReceivedActivity(Error, Option<Url>)
Failed to parse an activity received from another instance
ReqwestMiddleware(Error)
Reqwest Middleware Error
Reqwest(Error)
Reqwest Error
Utf8(FromUtf8Error)
UTF-8 error
UrlParse(ParseError)
Url Parse
SignError(SignError)
Signing errors
ActivityQueueError(Url)
Failed to queue activity for sending
StopActivityQueue(JoinError)
Stop activity queue
FetchInvalidContentType(Url)
Attempted to fetch object which doesn’t have valid ActivityPub Content-Type
FetchWrongId(Url)
Attempted to fetch object but the response’s id field doesn’t match
Other(String)
Other generic errors
Trait Implementations§
source§impl Error for Error
impl Error for Error
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
source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
source§fn from(value: ErrorStack) -> Self
fn from(value: ErrorStack) -> Self
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
source§impl From<WebFingerError> for Error
impl From<WebFingerError> for Error
source§fn from(source: WebFingerError) -> Self
fn from(source: WebFingerError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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