Enum graph_error::GraphFailure
source · pub enum GraphFailure {
Show 20 variants
Io(Error),
Parse(ParseIntError),
ParseString(ParseError),
Utf8Error(Utf8Error),
ReqwestError(Error),
ReqwestHeaderToStr(ToStrError),
SerdeError(Error),
SerdeYamlError(Error),
DecodeError(DecodeError),
GraphError(GraphError),
RecvError(RecvError),
BorrowMutError(BorrowMutError),
UrlParseError(ParseError),
HyperError(Error),
HyperHttpError(Error),
HyperInvalidUri(InvalidUri),
GraphRsError(GraphRsError),
HandlebarsRenderError(RenderError),
HandlebarsTemplateRenderError(TemplateRenderError),
CryptoError,
}
Variants§
Io(Error)
Parse(ParseIntError)
ParseString(ParseError)
Utf8Error(Utf8Error)
ReqwestError(Error)
ReqwestHeaderToStr(ToStrError)
SerdeError(Error)
SerdeYamlError(Error)
DecodeError(DecodeError)
GraphError(GraphError)
RecvError(RecvError)
BorrowMutError(BorrowMutError)
UrlParseError(ParseError)
HyperError(Error)
HyperHttpError(Error)
HyperInvalidUri(InvalidUri)
GraphRsError(GraphRsError)
HandlebarsRenderError(RenderError)
HandlebarsTemplateRenderError(TemplateRenderError)
CryptoError
Implementations§
source§impl GraphFailure
impl GraphFailure
pub fn error_kind(error_kind: ErrorKind, message: &str) -> Self
pub fn internal(err: GraphRsError) -> GraphFailure
pub fn not_found(msg: &str) -> GraphFailure
pub fn invalid(msg: &str) -> Self
Trait Implementations§
source§impl Debug for GraphFailure
impl Debug for GraphFailure
source§impl Default for GraphFailure
impl Default for GraphFailure
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<BorrowMutError> for GraphFailure
impl From<BorrowMutError> for GraphFailure
source§fn from(source: BorrowMutError) -> Self
fn from(source: BorrowMutError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for GraphFailure
impl From<DecodeError> for GraphFailure
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
source§impl From<Error> for GraphFailure
impl From<Error> for GraphFailure
source§impl From<GraphError> for GraphFailure
impl From<GraphError> for GraphFailure
source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
source§impl From<GraphRsError> for GraphFailure
impl From<GraphRsError> for GraphFailure
source§fn from(source: GraphRsError) -> Self
fn from(source: GraphRsError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for GraphFailure
impl From<Infallible> for GraphFailure
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<InvalidUri> for GraphFailure
impl From<InvalidUri> for GraphFailure
source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for GraphFailure
impl From<ParseError> for GraphFailure
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for GraphFailure
impl From<ParseIntError> for GraphFailure
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<RecvError> for GraphFailure
impl From<RecvError> for GraphFailure
source§impl From<RenderError> for GraphFailure
impl From<RenderError> for GraphFailure
source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
source§impl From<TemplateRenderError> for GraphFailure
impl From<TemplateRenderError> for GraphFailure
source§fn from(source: TemplateRenderError) -> Self
fn from(source: TemplateRenderError) -> Self
Converts to this type from the input type.
source§impl From<ToStrError> for GraphFailure
impl From<ToStrError> for GraphFailure
source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
source§impl From<Unspecified> for GraphFailure
impl From<Unspecified> for GraphFailure
source§fn from(_: Unspecified) -> Self
fn from(_: Unspecified) -> Self
Converts to this type from the input type.