pub enum Error {
AndroidEnvironment,
MalformedUri,
NoHandler,
NotMainThread,
Unknown,
}Expand description
Errors encountered when opening a URI.
Variants§
AndroidEnvironment
Could not acquire the android environment.
See the robius-android-env crate for more details.
MalformedUri
The provided URI was malformed or otherwise invalid.
NoHandler
No handler was available to open the URI.
NotMainThread
The URI was not opened because it must be called on the main UI thread.
Unknown
An unknown error occurred.
Note that on certain platforms if a handler is not available this error variant will be returned, as the error returned by the operating system is not fine-grained enough.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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