pub enum UriHandlerError {
OpenFailed(String),
NoWindow,
PopupBlocked(String),
UnsupportedPlatform(String),
UnsupportedFeature {
operation: &'static str,
feature: &'static str,
},
}Expand description
Reason why UriHandler::open_uri failed.
Variants§
OpenFailed(String)
The platform failed to open the URL. The text describes the cause.
NoWindow
There is no browser window object to open the URL in.
PopupBlocked(String)
The browser blocked the new window for the URL.
UnsupportedPlatform(String)
The platform has no way to open external links.
UnsupportedFeature
The operation needs a cranpose-services feature that is turned off.
Trait Implementations§
Source§impl Debug for UriHandlerError
impl Debug for UriHandlerError
Source§impl Display for UriHandlerError
impl Display for UriHandlerError
Source§impl Error for UriHandlerError
impl Error for UriHandlerError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for UriHandlerError
impl RefUnwindSafe for UriHandlerError
impl Send for UriHandlerError
impl Sync for UriHandlerError
impl Unpin for UriHandlerError
impl UnsafeUnpin for UriHandlerError
impl UnwindSafe for UriHandlerError
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