Skip to main content

UriOpener

Trait UriOpener 

pub trait UriOpener: Send + Sync {
    // Required method
    fn open(&self, uri: &str) -> Result<(), Error>;
}
Expand description

Hands a URI to whatever the host registers as its handler.

Required Methods§

fn open(&self, uri: &str) -> Result<(), Error>

Open uri without waiting for the handler to finish. May block until the handler is launched or the request is refused, so the toolkit calls it off the UI thread.

§Errors

The host refused or cannot open URIs at all.

Implementors§