Enum graph_rs_sdk::GraphFailure
source · pub enum GraphFailure {
Show 18 variants
Io(Error),
Utf8Error(Utf8Error),
ReqwestError(Error),
ReqwestHeaderToStr(ToStrError),
SerdeError(Error),
DecodeError(DecodeError),
RecvError(RecvError),
BorrowMutError(BorrowMutError),
UrlParseError(ParseError),
HttpError(Error),
GraphRsError(GraphRsError),
HandlebarsRenderError(RenderError),
HandlebarsTemplateRenderError(TemplateRenderError),
CryptoError,
AsyncDownloadError(AsyncDownloadError),
PreFlightError {
url: Option<Url>,
headers: HeaderMap,
error: Box<GraphFailure>,
},
Default {
url: Option<Url>,
headers: Option<HeaderMap>,
message: String,
},
ErrorMessage(ErrorMessage),
}
Variants§
Io(Error)
Utf8Error(Utf8Error)
ReqwestError(Error)
ReqwestHeaderToStr(ToStrError)
SerdeError(Error)
DecodeError(DecodeError)
RecvError(RecvError)
BorrowMutError(BorrowMutError)
UrlParseError(ParseError)
HttpError(Error)
GraphRsError(GraphRsError)
HandlebarsRenderError(RenderError)
HandlebarsTemplateRenderError(TemplateRenderError)
CryptoError
AsyncDownloadError(AsyncDownloadError)
PreFlightError
Default
ErrorMessage(ErrorMessage)
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)>
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<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<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<GraphFailure> for OAuthError
impl From<GraphFailure> for OAuthError
source§fn from(err: GraphFailure) -> OAuthError
fn from(err: GraphFailure) -> OAuthError
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<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<ToStrError> for GraphFailure
impl From<ToStrError> for GraphFailure
source§fn from(source: ToStrError) -> GraphFailure
fn from(source: ToStrError) -> 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 !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