Struct ashpd::desktop::background::BackgroundProxy [−][src]
pub struct BackgroundProxy<'a>(_);
Expand description
The interface lets sandboxed applications request that the application is allowed to run in the background or started automatically when the user logs in.
Implementations
Create a new instance of BackgroundProxy
.
pub async fn request_background(
&self,
identifier: WindowIdentifier,
reason: &str,
auto_start: bool,
command_line: Option<&[&str]>,
dbus_activatable: bool
) -> Result<Background, Error>
pub async fn request_background(
&self,
identifier: WindowIdentifier,
reason: &str,
auto_start: bool,
command_line: Option<&[&str]>,
dbus_activatable: bool
) -> Result<Background, Error>
Requests that the application is allowed to run in the background.
Arguments
identifier
- Identifier for the application window.reason
- Sets a user-visible reason for the request.auto_start
- Sets whether to auto start the application or not.dbus_activatable
- Sets whether the application is dbus activatable.command_line
- Specifies the command line to execute. If this is not specified, the Exec line from the desktop file will be used.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BackgroundProxy<'a>
impl<'a> Send for BackgroundProxy<'a>
impl<'a> Sync for BackgroundProxy<'a>
impl<'a> Unpin for BackgroundProxy<'a>
impl<'a> !UnwindSafe for BackgroundProxy<'a>