pub enum Request {
    Destroy,
    ExportToplevel {
        id: Proxy<ZxdgExportedV2>,
        surface: Proxy<WlSurface>,
    },
}

Variants§

§

Destroy

destroy the xdg_exporter object

Notify the compositor that the xdg_exporter object will no longer be used.

This is a destructor, once sent this object cannot be used any longer.

§

ExportToplevel

Fields

§surface: Proxy<WlSurface>

export a toplevel surface

The export_toplevel request exports the passed surface so that it can later be imported via xdg_importer. When called, a new xdg_exported object will be created and xdg_exported.handle will be sent immediately. See the corresponding interface and event for details.

A surface may be exported multiple times, and each exported handle may be used to create a xdg_imported multiple times. Only xdg_toplevel equivalent surfaces may be exported.

Trait Implementations§

Wire representation of this MessageGroup
The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more
Whether this message is a destructor Read more
The opcode of this message
Retrieve the child Object associated with this message if any
Construct a message from its raw representation
Turn this message into its raw representation
Construct a message of this group from its C representation
Build a C representation of this message 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.