Enum graph_rs_sdk::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<&'a (dyn Error + 'static)>
fn source<'a>(&'a self) -> Option<&'a (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) -> OAuthError
fn from(err: GraphFailure) -> OAuthError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OAuthError
impl Send for OAuthError
impl Sync for OAuthError
impl Unpin for OAuthError
impl !UnwindSafe for OAuthError
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