[go: up one dir, main page]

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

The interface lets services ask if an application should get access to devices such as microphones, speakers or cameras. Not a portal in the strict sense, since the API is not directly accessible to applications inside the sandbox.

Wrapper of the DBus interface: org.freedesktop.portal.Device.

Implementations

Create a new instance of DeviceProxy.

Get a reference to the underlying Proxy.

Asks for access to a device.

Arguments
  • pid - The pid of the application on whose behalf the request is made.
  • devices - A list of devices to request access to.

Note Asking for multiple devices at the same time may or may not be supported

Specifications

See also AccessDevice.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.