Enum graph_oauth::oauth::OAuthError
source · pub enum OAuthError {
GraphFailure(GraphFailure),
}
Expand description
Error implementation for OAuth
Variants§
GraphFailure(GraphFailure)
Implementations§
source§impl OAuthError
impl OAuthError
pub fn error_kind(error_kind: ErrorKind, message: &str) -> GraphFailure
pub fn invalid_data<T>(msg: &str) -> Result<T, GraphFailure>
pub fn invalid(msg: &str) -> GraphFailure
pub fn error_from<T>(c: OAuthCredential) -> Result<T, GraphFailure>
pub fn credential_error(c: OAuthCredential) -> GraphFailure
pub fn grant_error<T>( grant: GrantType, grant_request: GrantRequest, msg: &str ) -> Result<T, GraphFailure>
Trait Implementations§
source§impl Debug for OAuthError
impl Debug for OAuthError
source§impl Display for OAuthError
impl Display for OAuthError
source§impl Error for OAuthError
impl Error for OAuthError
source§fn source<'a>(&'a self) -> Option<&(dyn Error + 'static)>
fn source<'a>(&'a 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<GraphFailure> for OAuthError
impl From<GraphFailure> for OAuthError
source§fn from(err: GraphFailure) -> Self
fn from(err: GraphFailure) -> Self
Converts to this type from the input type.