Struct ashpd::desktop::screencast::ScreenCastProxy[][src]

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

The interface lets sandboxed applications create screen cast sessions.

Implementations

Create a new instance of ScreenCastProxy.

Get a reference to the underlying Proxy.

Create a screen cast session.

Open a file descriptor to the PipeWire remote where the screen cast streams are available.

Returns a file descriptor of an open PipeWire remote.

Arguments

Configure what the screen cast session should record. This method must be called before starting the session.

Passing invalid input to this method will cause the session to be closed. An application may only attempt to select sources once per session.

Arguments

  • session - A SessionProxy.
  • cursor_mode - Sets how the cursor will be drawn on the screen cast stream.
  • types - Sets the types of content to record.
  • multiple- Sets whether to allow selecting multiple sources.

Start the screen cast session.

This will typically result the portal presenting a dialog letting the user do the selection set up by select_sources.

An application can only attempt start a session once.

Arguments

  • session - A SessionProxy.
  • identifier - Identifier for the application window.

Available cursor mode.

Available source types.

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.