Skip to main content

Inside

Trait Inside 

Source
pub trait Inside: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn show(&self, app: &AppHandle, call: &OpenCall<'_>) -> Result<(), String>;

    // Provided methods
    fn docs_pages(&self) -> Option<Vec<String>> { ... }
    fn plays_video(&self) -> bool { ... }
    fn plays_web_video(&self) -> bool { ... }
}
Expand description

What shows pages and images inside the application (the viewer of egui_pop_views::viewer, or the host’s own): the links service hands it each request the policy sends inside (docs: pages, pages on the application’s documentation hosts, local images, local videos when it plays them, YouTube videos when it plays those), after the policy and the user’s confirmation.

Required Methods§

Source

fn name(&self) -> &str

Its name, as the links collector shows it.

Source

fn show(&self, app: &AppHandle, call: &OpenCall<'_>) -> Result<(), String>

Shows a target (call.how is Inside), or says why not.

Provided Methods§

Source

fn docs_pages(&self) -> Option<Vec<String>>

The docs: pages it has, when it knows them: the lint checks the declared docs: links against them.

Source

fn plays_video(&self) -> bool

Whether it plays local video files: without that they open outside, as any local file.

Source

fn plays_web_video(&self) -> bool

Whether it plays YouTube links (in a web view): without that they open outside, as any web video.

Implementors§