Skip to main content

Launcher

Trait Launcher 

Source
pub trait Launcher {
    // Required method
    fn launch(&self, content_path: &Path) -> Result<()>;
}
Expand description

Handing a content file to whatever the desktop says opens it.

Required Methods§

Source

fn launch(&self, content_path: &Path) -> Result<()>

Open content_path with the platform’s own handler.

§Errors

Where the platform’s launcher cannot be run, or refuses.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Launcher for Host

Available on Linux only.

xdg-open, which every desktop on this platform provides or is expected to.

There is no trust-zone marking to apply here and concept 12 says so out loud: Linux keeps provenance as a note rather than as a gate, so slpc::provenance records where a content file came from and nothing consults it. That is the platform’s shape rather than an omission in this code, and the administrator documentation states it rather than leaving it to be discovered.