Struct input::Seat

source ·
pub struct Seat { /* private fields */ }
Expand description

A seat has two identifiers, the physical name and the logical name.

A device is always assigned to exactly one seat. It may change to a different logical seat but it cannot change physical seats. See Seats for details.

Implementations

Get the libinput context from the seat.

Return the physical name of the seat.

For libinput contexts created from udev, this is always the same value as passed into udev_assign_seat and all seats from that context will have the same physical name.

The physical name of the seat is one that is usually set by the system or lower levels of the stack. In most cases, this is the base filter for devices - devices assigned to seats outside the current seat will not be available to the caller.

Return the logical name of the seat.

This is an identifier to group sets of devices within the compositor.

Trait Implementations

Receive a raw pointer representing this type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the underlying libinput context
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Create a new instance of this type from a raw pointer and it’s context. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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
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.