pub enum OpenUrlError {
Unavailable,
LaunchFailed,
}Expand description
A non-fatal failure while handing a validated URL to the host system.
Errors deliberately carry no URL, process command, or platform detail so UI diagnostics cannot accidentally expose credentials or query secrets.
§Examples
use ailloli_ui_runtime::app::OpenUrlError;
assert_eq!(OpenUrlError::Unavailable.to_string(), "system URL opener is unavailable");
assert_eq!(OpenUrlError::LaunchFailed.to_string(), "system URL opener failed");Variants§
No suitable host URL-opening capability is installed or enabled.
LaunchFailed
A configured opener failed to accept or launch the URL.
Trait Implementations§
Source§impl Clone for OpenUrlError
impl Clone for OpenUrlError
Source§fn clone(&self) -> OpenUrlError
fn clone(&self) -> OpenUrlError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenUrlError
impl Debug for OpenUrlError
Source§impl Display for OpenUrlError
Implements the fmt::Display contract for OpenUrlError.
impl Display for OpenUrlError
Implements the fmt::Display contract for OpenUrlError.
Source§impl Error for OpenUrlError
Implements the std::error::Error contract for OpenUrlError.
impl Error for OpenUrlError
Implements the std::error::Error contract for OpenUrlError.
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()
Source§impl PartialEq for OpenUrlError
impl PartialEq for OpenUrlError
impl Eq for OpenUrlError
impl StructuralPartialEq for OpenUrlError
Auto Trait Implementations§
impl Freeze for OpenUrlError
impl RefUnwindSafe for OpenUrlError
impl Send for OpenUrlError
impl Sync for OpenUrlError
impl Unpin for OpenUrlError
impl UnwindSafe for OpenUrlError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.