Trait gio::prelude::AppInfoExtManual
source · pub trait AppInfoExtManual: Sealed + IsA<AppInfo> + 'static {
// Provided methods
fn launch_uris_async<P: IsA<AppLaunchContext>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + 'static>(
&self,
uris: &[&str],
context: Option<&P>,
cancellable: Option<&Q>,
callback: R,
) { ... }
fn launch_uris_future<P: IsA<AppLaunchContext> + Clone + 'static>(
&self,
uris: &[&str],
context: Option<&P>,
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
}
Provided Methods§
sourcefn launch_uris_async<P: IsA<AppLaunchContext>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + 'static>(
&self,
uris: &[&str],
context: Option<&P>,
cancellable: Option<&Q>,
callback: R,
)
Available on crate feature v2_60
only.
fn launch_uris_async<P: IsA<AppLaunchContext>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + 'static>( &self, uris: &[&str], context: Option<&P>, cancellable: Option<&Q>, callback: R, )
v2_60
only.Async version of g_app_info_launch_uris().
The @callback is invoked immediately after the application launch, but it waits for activation in case of D-Bus–activated applications and also provides extended error information for sandboxed applications, see notes for g_app_info_launch_default_for_uri_async().
§uris
a #GList containing URIs to launch.
§context
a #GAppLaunchContext or None
§cancellable
a #GCancellable
§callback
a #GAsyncReadyCallback to call when the request is done
fn launch_uris_future<P: IsA<AppLaunchContext> + Clone + 'static>( &self, uris: &[&str], context: Option<&P>, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
Available on crate feature
v2_60
only.Object Safety§
This trait is not object safe.