pub enum Event {
    Format {
        format: u32,
    },
    Modifier {
        format: u32,
        modifier_hi: u32,
        modifier_lo: u32,
    },
}

Variants§

§

Format

Fields

§format: u32

supported buffer format

This event advertises one buffer format that the server supports. All the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported formats.

For the definition of the format codes, see the zwp_linux_buffer_params_v1::create request.

Warning: the ‘format’ event is likely to be deprecated and replaced with the ‘modifier’ event introduced in zwp_linux_dmabuf_v1 version 3, described below. Please refrain from using the information received from this event.

§

Modifier

Fields

§format: u32
§modifier_hi: u32
§modifier_lo: u32

supported buffer format modifier

This event advertises the formats that the server supports, along with the modifiers supported for each format. All the supported modifiers for all the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported format-modifier pairs.

For the definition of the format and modifier codes, see the zwp_linux_buffer_params_v1::create request.

Only available since version 3 of the interface

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.