Skip to main content

Opener

Trait Opener 

Source
pub trait Opener: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn caps(&self) -> Caps;
    fn open(&self, call: &OpenCall<'_>) -> Opening;
}
Expand description

What opens a link outside the application, replaceable by the host (ADR 0010): a kiosk opening nothing, a host opening in its own browser, a headless node forwarding to an attached interface.

Required Methods§

Source

fn name(&self) -> &str

Its name, as the links collector shows it.

Source

fn caps(&self) -> Caps

What it can do here: the policy refuses the rest with the reason.

Source

fn open(&self, call: &OpenCall<'_>) -> Opening

Opens a target the policy approved (and the user confirmed when asked).

Implementors§