pub enum WebViewDeviceCodeError {
WindowClosed(String),
AuthExecutionError(Box<AuthExecutionError>),
DeviceCodePollingError(Response<Result<Value, ErrorMessage>>),
}
Variants§
WindowClosed(String)
Webview Window closed for one of the following reasons:
- The user closed the webview window without logging in.
- The webview exited because of a timeout defined in the WebViewOptions.
- The window or event loop was destroyed. The cause is unknown.
AuthExecutionError(Box<AuthExecutionError>)
Error that happens calling the http request.
DeviceCodePollingError(Response<Result<Value, ErrorMessage>>)
Trait Implementations§
Source§impl Debug for WebViewDeviceCodeError
impl Debug for WebViewDeviceCodeError
Source§impl Display for WebViewDeviceCodeError
impl Display for WebViewDeviceCodeError
Source§impl Error for WebViewDeviceCodeError
impl Error for WebViewDeviceCodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<AuthorizationFailure> for WebViewDeviceCodeError
impl From<AuthorizationFailure> for WebViewDeviceCodeError
Source§fn from(value: AuthorizationFailure) -> Self
fn from(value: AuthorizationFailure) -> Self
Converts to this type from the input type.
Source§impl From<Box<AuthExecutionError>> for WebViewDeviceCodeError
impl From<Box<AuthExecutionError>> for WebViewDeviceCodeError
Source§fn from(source: Box<AuthExecutionError>) -> Self
fn from(source: Box<AuthExecutionError>) -> Self
Converts to this type from the input type.
Source§impl From<WebViewDeviceCodeError> for AuthExecutionError
impl From<WebViewDeviceCodeError> for AuthExecutionError
Source§fn from(value: WebViewDeviceCodeError) -> Self
fn from(value: WebViewDeviceCodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebViewDeviceCodeError
impl !RefUnwindSafe for WebViewDeviceCodeError
impl Send for WebViewDeviceCodeError
impl Sync for WebViewDeviceCodeError
impl Unpin for WebViewDeviceCodeError
impl !UnwindSafe for WebViewDeviceCodeError
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