pub struct PrimarySelectionHandler { /* private fields */ }
Expand description

A handler for primary selection.

It provides automatic tracking of primary selection device for each available seat, allowing you to manipulate the primary selection clipboard.

It’s automatically included in the default_environment!.

Implementations

Initialize a primary selection handler.

In requires the access to the seat handler in order to track the creation and removal of seats.

Trait Implementations

Formats the value using the given formatter. Read more

This global was created and signaled in the registry with given id and version

Access the global if it was signaled

This global was created and signaled in the registry with given id and version

Access the global if it was signaled

Get the best available primary selection device manager protocol.

Returns None if no primary selection device manager was advertised.

Access the primary selection associated with a seat.

Returns an error if the seat is not found (for example if it has since been removed by the server) of if the zwp_primary_selection_device_manager_v1 or gtk_primary_selection_device_manager globals are missing.

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.