pub enum Reason {
Empty,
Unparsable(String),
Scheme(String),
Device,
Executable,
Missing,
UndeclaredCommand,
NoGesture,
NotApplicable(String),
Unsupported(String),
}Expand description
Why a link is refused.
Variants§
Empty
Nothing to open.
Unparsable(String)
Neither a URL nor an absolute path.
Scheme(String)
A scheme the policy does not allow (javascript:, data:…).
Device
A device (/dev/..., \\.\...).
Executable
An executable or a script: never opened, Reveal offered.
Missing
A file that is not there.
UndeclaredCommand
A command: link outside text the application declared, or asked
by an agent.
NoGesture
Content opens only on a click.
NotApplicable(String)
The way asked does not apply to this kind (Reveal of a web page).
Unsupported(String)
The opener cannot do it here (local files on the web build, no viewer).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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