Trait AppLaunchContextExt

Source
pub trait AppLaunchContextExt: 'static {
    // Required methods
    fn get_display<P: IsA<AppInfo>>(
        &self,
        info: &P,
        files: &[File],
    ) -> Option<GString>;
    fn get_environment(&self) -> Vec<OsString>;
    fn get_startup_notify_id<P: IsA<AppInfo>>(
        &self,
        info: &P,
        files: &[File],
    ) -> Option<GString>;
    fn launch_failed(&self, startup_notify_id: &str);
    fn setenv<P: AsRef<OsStr>, Q: AsRef<OsStr>>(&self, variable: P, value: Q);
    fn unsetenv<P: AsRef<OsStr>>(&self, variable: P);
    fn connect_launch_failed<F: Fn(&Self, &str) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_launched<F: Fn(&Self, &AppInfo, &Variant) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_display<P: IsA<AppInfo>>( &self, info: &P, files: &[File], ) -> Option<GString>

Source

fn get_environment(&self) -> Vec<OsString>

Source

fn get_startup_notify_id<P: IsA<AppInfo>>( &self, info: &P, files: &[File], ) -> Option<GString>

Source

fn launch_failed(&self, startup_notify_id: &str)

Source

fn setenv<P: AsRef<OsStr>, Q: AsRef<OsStr>>(&self, variable: P, value: Q)

Source

fn unsetenv<P: AsRef<OsStr>>(&self, variable: P)

Source

fn connect_launch_failed<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_launched<F: Fn(&Self, &AppInfo, &Variant) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§