pub struct SeatData {
    pub name: String,
    pub has_pointer: bool,
    pub has_keyboard: bool,
    pub has_touch: bool,
    pub defunct: bool,
    /* private fields */
}
Expand description

The metadata associated with a seat

Fields

name: String

The name of this seat

It can be used as an identifier for the seat

has_pointer: bool

Whether this seat has a pointer available

has_keyboard: bool

Whether this seat has a keyboard available

has_touch: bool

Whether this seat has a touchscreen available

defunct: bool

Whether this seat has been removed from the registry

Once a seat is removed, you will no longer receive any event on any of its associated devices (pointer, keyboard or touch).

You can thus cleanup all your state associated with this seat.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.