Struct ashpd::desktop::inhibit::InhibitProxy[][src]

pub struct InhibitProxy<'a>(_);
Expand description

The interface lets sandboxed applications inhibit the user session from ending, suspending, idling or getting switched away.

Implementations

Create a new instance of InhibitProxy.

Get a reference to the underlying Proxy.

Creates a monitoring session. While this session is active, the caller will receive state_changed signals with updates on the session state.

Arguments

  • identifier - The application window identifier.

Inhibits a session status changes.

Arguments

  • identifier - The application window identifier.
  • flags - The flags determine what changes are inhibited.
  • reason - User-visible reason for the inhibition.

Signal emitted when the session state changes.

Acknowledges that the caller received the “state_changed” signal. This method should be called within one second after receiving a state_changed signal with the SessionState::QueryEnd state.

Arguments

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.