#[non_exhaustive]pub enum GraphFailure {
Show 22 variants
Io(Error),
Utf8Error(Utf8Error),
ReqwestError(Error),
SerdeJson(Error),
DecodeError(DecodeError),
RecvError(RecvError),
BorrowMutError(BorrowMutError),
UrlParse(ParseError),
HttpError(Error),
GraphRsError(GraphRsError),
HandlebarsRenderError(RenderError),
HandlebarsTemplateRenderError(TemplateRenderError),
CryptoError,
AsyncDownloadError(AsyncDownloadError),
PreFlightError {
url: Option<Url>,
headers: Option<HeaderMap>,
error: Option<Box<GraphFailure>>,
message: String,
},
Default {
url: Option<Url>,
headers: Option<HeaderMap>,
message: String,
},
ErrorMessage(ErrorMessage),
TemporaryError,
ParseIntError(ParseIntError),
SilentTokenAuth {
message: String,
response: Response<Result<Value, ErrorMessage>>,
},
JsonWebToken(Error),
Other(Box<dyn Error + Send + Sync>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Utf8Error(Utf8Error)
ReqwestError(Error)
SerdeJson(Error)
DecodeError(DecodeError)
RecvError(RecvError)
BorrowMutError(BorrowMutError)
UrlParse(ParseError)
HttpError(Error)
GraphRsError(GraphRsError)
HandlebarsRenderError(RenderError)
HandlebarsTemplateRenderError(TemplateRenderError)
CryptoError
AsyncDownloadError(AsyncDownloadError)
PreFlightError
Default
ErrorMessage(ErrorMessage)
TemporaryError
ParseIntError(ParseIntError)
SilentTokenAuth
JsonWebToken(Error)
Other(Box<dyn Error + Send + Sync>)
Implementations§
Source§impl GraphFailure
impl GraphFailure
pub fn error_kind(error_kind: ErrorKind, message: &str) -> GraphFailure
pub fn internal(err: GraphRsError) -> GraphFailure
pub fn not_found(msg: &str) -> GraphFailure
pub fn invalid(msg: &str) -> GraphFailure
Trait Implementations§
Source§impl Debug for GraphFailure
impl Debug for GraphFailure
Source§impl Default for GraphFailure
impl Default for GraphFailure
Source§fn default() -> GraphFailure
fn default() -> GraphFailure
Returns the “default value” for a type. Read more
Source§impl Display for GraphFailure
impl Display for GraphFailure
Source§impl Error for GraphFailure
impl Error for GraphFailure
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<AsyncDownloadError> for GraphFailure
impl From<AsyncDownloadError> for GraphFailure
Source§fn from(source: AsyncDownloadError) -> GraphFailure
fn from(source: AsyncDownloadError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<AuthExecutionError> for GraphFailure
impl From<AuthExecutionError> for GraphFailure
Source§fn from(value: AuthExecutionError) -> GraphFailure
fn from(value: AuthExecutionError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<BorrowMutError> for GraphFailure
impl From<BorrowMutError> for GraphFailure
Source§fn from(source: BorrowMutError) -> GraphFailure
fn from(source: BorrowMutError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<DecodeError> for GraphFailure
impl From<DecodeError> for GraphFailure
Source§fn from(source: DecodeError) -> GraphFailure
fn from(source: DecodeError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
Source§fn from(source: Error) -> GraphFailure
fn from(source: Error) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
Source§fn from(source: Error) -> GraphFailure
fn from(source: Error) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
Source§fn from(source: Error) -> GraphFailure
fn from(source: Error) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
Source§fn from(source: Error) -> GraphFailure
fn from(source: Error) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
Source§fn from(source: Error) -> GraphFailure
fn from(source: Error) -> GraphFailure
Converts to this type from the input type.
Source§impl From<ErrorMessage> for GraphFailure
impl From<ErrorMessage> for GraphFailure
Source§fn from(source: ErrorMessage) -> GraphFailure
fn from(source: ErrorMessage) -> GraphFailure
Converts to this type from the input type.
Source§impl From<GraphRsError> for GraphFailure
impl From<GraphRsError> for GraphFailure
Source§fn from(source: GraphRsError) -> GraphFailure
fn from(source: GraphRsError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<ParseError> for GraphFailure
impl From<ParseError> for GraphFailure
Source§fn from(source: ParseError) -> GraphFailure
fn from(source: ParseError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<ParseIntError> for GraphFailure
impl From<ParseIntError> for GraphFailure
Source§fn from(source: ParseIntError) -> GraphFailure
fn from(source: ParseIntError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<RecvError> for GraphFailure
impl From<RecvError> for GraphFailure
Source§fn from(source: RecvError) -> GraphFailure
fn from(source: RecvError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<RenderError> for GraphFailure
impl From<RenderError> for GraphFailure
Source§fn from(source: RenderError) -> GraphFailure
fn from(source: RenderError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<TemplateRenderError> for GraphFailure
impl From<TemplateRenderError> for GraphFailure
Source§fn from(source: TemplateRenderError) -> GraphFailure
fn from(source: TemplateRenderError) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Unspecified> for GraphFailure
impl From<Unspecified> for GraphFailure
Source§fn from(_: Unspecified) -> GraphFailure
fn from(_: Unspecified) -> GraphFailure
Converts to this type from the input type.
Source§impl From<Utf8Error> for GraphFailure
impl From<Utf8Error> for GraphFailure
Source§fn from(source: Utf8Error) -> GraphFailure
fn from(source: Utf8Error) -> GraphFailure
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphFailure
impl !RefUnwindSafe for GraphFailure
impl Send for GraphFailure
impl Sync for GraphFailure
impl Unpin for GraphFailure
impl !UnwindSafe for GraphFailure
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> 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>
Converts
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>
Converts
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