pub enum DeviceGrantFailure {
OAuth {
status: u16,
error: String,
description: String,
},
Application(AuthError),
}Variants§
Implementations§
Source§impl DeviceGrantFailure
impl DeviceGrantFailure
pub fn oauth( status: u16, error: impl Into<String>, description: impl Into<String>, ) -> Self
pub fn into_response(self) -> AuthResult<AuthResponse>
Trait Implementations§
Source§impl Debug for DeviceGrantFailure
impl Debug for DeviceGrantFailure
Auto Trait Implementations§
impl !RefUnwindSafe for DeviceGrantFailure
impl !UnwindSafe for DeviceGrantFailure
impl Freeze for DeviceGrantFailure
impl Send for DeviceGrantFailure
impl Sync for DeviceGrantFailure
impl Unpin for DeviceGrantFailure
impl UnsafeUnpin for DeviceGrantFailure
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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