pub enum WebViewError {
WindowClosed(String),
InvalidUri(String),
Authorization {
error: String,
error_description: String,
error_uri: Option<String>,
},
AuthExecutionError(Box<AuthExecutionError>),
}
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.
InvalidUri(String)
One of the following errors has occurred:
-
Issues with the redirect uri such as specifying localhost but not providing a port in the WebViewOptions.
-
The webview was successfully redirected but the url did not contain a query or fragment. The query or fragment of the url is where the auth code would be returned to the app.
-
The host or domain provided or set for login is invalid. This could be an internal error and most likely will never happen.
Authorization
The query or fragment of the redirect uri is an error returned from Microsoft.
AuthExecutionError(Box<AuthExecutionError>)
Error that happens when building or calling the http request.
Trait Implementations§
Source§impl Debug for WebViewError
impl Debug for WebViewError
Source§impl Display for WebViewError
impl Display for WebViewError
Source§impl Error for WebViewError
impl Error for WebViewError
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 WebViewError
impl From<AuthorizationFailure> for WebViewError
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 WebViewError
impl From<Box<AuthExecutionError>> for WebViewError
Source§fn from(source: Box<AuthExecutionError>) -> Self
fn from(source: Box<AuthExecutionError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebViewError
impl !RefUnwindSafe for WebViewError
impl Send for WebViewError
impl Sync for WebViewError
impl Unpin for WebViewError
impl !UnwindSafe for WebViewError
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